stuartlangridge / gnome-shell-clock-override

Override the Gnome Shell clock with a new time format or text of your choice. Works with new versions of Shell such as 3.18
MIT License
89 stars 33 forks source link

Internet time is wrong #26

Closed tuberculo closed 6 years ago

tuberculo commented 6 years ago

Internet time is not correct. It should be @000 on 00:00 UTC+1, instead it is on 00:00 UTC+2.

da2x commented 6 years ago

Which version are you running? The initial version used UTC instead of UTF+01:00. The current version use UTC+01:00 (BMT):

GLib.TimeZone.new('+01')

Which time zone are you in? I’m not sure how this could be anything other than UTC+01

tuberculo commented 6 years ago

It is version 9. My time zone is UTC-3.

tuberculo commented 6 years ago

I've changed this line: var beat_time = 0 | (((bmtnow.get_hour() + 1) % 24) + bmtnow.get_minute() / 60 + bmtnow.get_second() / 3600) * 1000 / 24;

to: var beat_time = 0 | (((bmtnow.get_hour()) % 24) + bmtnow.get_minute() / 60 + bmtnow.get_second() / 3600) * 1000 / 24;

Seems to be right now.

da2x commented 6 years ago

Thanks!