cheshire137 / competiwatch-desktop

Desktop app built in Electron for tracking your competitive match history in Overwatch.
https://competiwatch.com/
MIT License
106 stars 24 forks source link

Time Zone picks wrong time #56

Open finncyr opened 5 years ago

finncyr commented 5 years ago

The "Weekday Morning" thingie does not use the correct time zone. For example I in Germany type in 6:30 PM and the Icons are locking on "Weekday Morning"

finncyr commented 5 years ago

competiwatch-desktop/src/models/DayTimeApproximator.js

I don't develop JS, otherwise i would fix myself, but here is what i found:

In the DayTimeApproximator.js you just grab the UTC string. Maybe you can add a timezone offset based on the hostsystem's timezone by using Date.getTimezoneOffset().