mautrix / slack

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

Support Slack's <!date> formatting #40

Closed twouters closed 3 months ago

twouters commented 8 months ago

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

twouters commented 8 months 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.