SlackAPI icon indicating copy to clipboard operation
SlackAPI copied to clipboard

Extensions.ToProperTimeStamp for Slack Date formatting

Open bsozin opened this issue 3 years ago • 0 comments

Looks like slack refuses to accept milliseconds in <!date> formatting.

Example of acceptable message. And example of unacceptable one.

Therefore Extensions.ToProperTimeStamp which always produce 6 decimal digits generates timestamp not suitable for formatting.

Maybe introduce additional parameter for the method (like ignoreMs) which will make integer timestamp?

bsozin avatar Nov 25 '21 06:11 bsozin