emvaized/selecton-extension

Wrong time conversion

Fan4Metal opened this issue · 5 comments

10 AM EST is converted to 18:00, but should be 17:00 (advancing to EDT). Current time zone is GMT+3.

Selecton currently relies on toLocaleTimeString method to convert to user's local time, which I guess uses browser built-in mechanisms. Maybe something wrong with your browser's or system's date-time settings?

I think the problem is that EST is usually corrected to EDT in most regions. So when you convert time at www.worldtimebuddy.com it is autocorrected to EDT. The same thing with CEST/CET time. Try to compare time conversion at this site and Selecton for example.

Yes, I can confirm the problem.

I just added manual check to change EST to EDT and CET to CEST if daylight saving time is active for user. Will land in next version 3.6.0.

Maybe there are some other time zones which should be handled the same way?

I still have encountered time conversion problem. Here 10:00 AM EST is converted to 18:00, but should be 17:00 in my time zone (UTC+3).