TheCommieAxolotl / BetterDiscord-Stuff

BetterDiscord Plugins and Themes
https://discord.gg/5BSWtSM3XU
MIT License
115 stars 293 forks source link

[Suggestion] DST #44

Closed ExpertNugget closed 4 months ago

ExpertNugget commented 1 year ago

Addon

Timezones

What happened?

Ability to set a start and end date for DST

What Discord version do you have this issue on?

No response

Logs

No response

Code of Conduct

FearNaBoinne commented 10 months ago

I wanted to suggest this as well...

DST is (unfortunately) still a major thing in a large part of the world.

Most OSs will allow you to pull current local DST state, but DST dates and offsets unfortunately vary across the world. You'd probably need to import the TZDATA file and use the generic naming conventions (ie 'CET', 'EST' and 'America/Chicago' or 'Europe/Amsterdam') instead of just hours and minutes...

FearNaBoinne commented 10 months ago

This could be part of #20 and do it all at once...

sophia1000 commented 10 months ago

there are only 13 different regions that do dst could just hardcode their times and have a dst dropdown to pick one if its a region that has dst. would be alot simpler yet still get the function across. https://en.wikipedia.org/wiki/Daylight_saving_time_by_country like there all consistent with their start and end dates. would be nice to see

TheCommieAxolotl commented 4 months ago

the Intl API now handles this in 1.1.0, dependent on your discord locale.