SlackAPI
SlackAPI copied to clipboard
Extensions.ToProperTimeStamp for Slack Date formatting
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?