Bugzilla – Bug 510
add timezone awareness to clock setting
Last modified: 2011-01-14 15:12:53 UTC
My slimserver host is configured for UTC but I live in the Eastern time zone. The Squeezebox is showing UTC time, therefore, which is amusing but not helpful. I would like an additional config item to set a time zone offset (in hours) to make the squeezebox display show correct local time. Handling daylight savings changes automagically would be a pleasant additional capability. TIA!
globally replacing the Time::HiRes::time() call with a custom slimserver time() function would allow the server to add in any timezone offset, but don't forget that any existing plugins will need to be changed if they use the Time::HiRes::time() functions. AlarmPlugin and AutoDisplay are two examples that I can think of.
Actually, the wall clock time is not derived from Time::HiRes because this function (on Windows) drifts with respect to wall-clock time as a tradeoff for high resolution. the built-in time() function is used to obtain wallclock time. Which reminds me, when setting alarms for wall-clock time, they should be derived from time() as well, to account for this drift.
Moving bugs that won't be immediately fixed in 6.1 release. Please review and update if this is an error or if this bug has already been fixed. Thanks.
I would want the alarm and other time-based features on the players to link to the timezone aware time vs. the server time.
Routine bug db maintenance; removing old versions which cause confusion. I apologize for the inconvenience.
Dean doesn't work here any more :)
Not going to be fixed, it is not unreasonable to assume a server should have the correct time zone set.
(In reply to comment #7) > Not going to be fixed, it is not unreasonable to assume a server should have > the correct time zone set. I think we (you) have lost sight of the original issue. The problem is not that the server is wrong, the problem is that a server often is supporting players in different time zones. Ref bug 8716, I have a server on GMT with 9 players local, and then players on Central European Time, and on Eastern Standard Time. Only the GMT players are correct. Now, you can suggest that I also have servers in Europe and in the US to support my players there, but that's not really sensible. A lot of people now stream their music from their home server. You have the option for mysqueezebox.com attached players - we just want the same when players are hooked up to our own servers. This requires a time-zone offset value to be set for each player. Been waiting nearly 7 years now!