Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom DateTime format and timezone setting #420

Open
SleepyAsh0191 opened this issue Jun 29, 2024 · 1 comment
Open

Custom DateTime format and timezone setting #420

SleepyAsh0191 opened this issue Jun 29, 2024 · 1 comment
Assignees
Labels
module:core Related to the core module type:feature A new functionality
Milestone

Comments

@SleepyAsh0191
Copy link

Describe the Feature

As the title suggests, different regions have different time formats and time zones. I came up with this idea once while preparing a maintenance announcement.

Although it is possible to achieve this using [args], writing it that way is very cumbersome and not very flexible.

It would be great if there were new tags, such as [time], [date], or [datetime], where you could input a timestamp. Additionally, being able to configure the corresponding time format, time zone, and default settings in the Language Section would make it even better.

@SleepyAsh0191 SleepyAsh0191 added triage Hasn't been manually reviewed type:feature A new functionality labels Jun 29, 2024
@diogotcorreia
Copy link
Member

Hey!
This is a nice suggestion, and especially the date/time format seems pretty easy to implement.

However, timezones might have a bit of a problem, since the same locale might have multiple timezones (a simple example is the USA). Additionally, other languages like Spanish are spoken in multiple countries around the world.
One way to "combat" this is to pick the most likely timezone for that language and make sure that is included in the message (so that most people get it correct, but some must do the conversion). Not sure if this is too convoluted (from a user experience perspective).

I'll give it a thought and implement it if I have time, likely on Triton v4.

@diogotcorreia diogotcorreia added module:core Related to the core module and removed triage Hasn't been manually reviewed labels Jun 30, 2024
@diogotcorreia diogotcorreia added this to the 4.0.0 milestone Jun 30, 2024
@diogotcorreia diogotcorreia modified the milestones: 4.0.0, 4.1.0 Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:core Related to the core module type:feature A new functionality
Projects
Status: No status
Development

No branches or pull requests

2 participants