Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
InternetTimeDesklet@stefan: Fix timezone (#909)
Change the hour/minute/second variable assignments to explicitly be in UTC format. Also, add one hour to the "getUTCHours()" call, as the "Biel Mean Time" (BMT) which Beat Time is based upon, is defined by Swatch as UTC+1. Previously this was calling Date's getHours/getMinutes/getSeconds functions, which returns LOCAL time. This had the effect of meaning the Beat time returned by this desklet was always incorrect unless your computer's time is set to the UTC+1 timezone. This commit fixes that and ensures that the correct universal Beat Time will be displayed regardless of the user's timezone.
- Loading branch information