mautrix / slack

A Matrix-Slack puppeting bridge
GNU Affero General Public License v3.0
68 stars 19 forks source link

Support Slack's <!date> formatting #40

Closed twouters closed 8 months ago

twouters commented 1 year ago

See https://api.slack.com/reference/surfaces/formatting#date-formatting

twouters commented 1 year ago

Just a sidenote: I opted for the format January 2, 2006 instead of the documented Slack format January 2nd, 2006 because Go's time library doesn't support it natively and I didn't want to introduce another dependency (like go-humanize) just to get the suffixes right, nor implement it manually because it would lack localization.