Inumedia / SlackAPI

.NET Implementation of the Slack team communication platform API.
MIT License
452 stars 243 forks source link

Extensions.ToProperTimeStamp for Slack Date formatting #283

Open bsozin opened 3 years ago

bsozin commented 3 years ago

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?