Date / time formatting tokens #3241
-
A channel might want to present a message with date/time information. Both the date and time may be important to the recipient. The presentation of the date and time should be controlled by the sender, but the date and time should be localized to the recipient. Discord currently provides a simple mechanism for this. Embeds may carry a timestamp that is included in the footer of the embed. While the timestamp is localized when shown to the receiver, the format of the date/time cannot be customized by the sender. And the Discord client currently discards time information when the timestamp is well in the future (more than a day or so?). Footer time included for something with today's date: Footer time excluded for a future date: Slack has a generalized method for handling this, and is documented here. Discord should consider adopting a similar way to encode date/time information, since channel members are often distributed across many timezones, and relaying date/time in a way that is localized is important. Use case: A gaming guild web site exists that helps members schedule and organize game sessions. These sessions are reported via Discord to draw awareness. When a game is posted for a particular start date/time, the web site sends the announcement to their Discord server. However, the game session is announced there with a date/time in text format along with a static timezone, which is appropriate for some, but not all). Ideally, the game's date/time should be localized to the person reading the announcement so they can easily identify if it is suitable for their participation. Cross-posted to Discord / Feedback / API. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
While we are on the subject for Date Time formatting, can Discord please include English AU: |
Beta Was this translation helpful? Give feedback.
-
I agree with @Lachee... localization should include both adjusting to the user's local timezone, but also representing the date in a manner appropriate to their locale. |
Beta Was this translation helpful? Give feedback.
-
this has been added #3135 |
Beta Was this translation helpful? Give feedback.
-
This would also be great to add as a feature to bots who convert timezones to local... we schedule a lot of live events in Discord and often people will just say things like "On the 10th at 10Pm UK" and we would like to have a way of embedding the local time, but future events lose this info from the timestamp |
Beta Was this translation helpful? Give feedback.
this has been added #3135