Rockbox Development > Feature Ideas

"Automatically adjust clock for daylight saving changes" option

<< < (2/5) > >>

Llorean:
Instead of including a time zone database, it seems like you could simply have two options, one of "DST begin date" and "DST end date." I don't know if internationally DST is always one hour, assuming it is, that's enough. If it's not, a third option "DST time offset" would handle the rest (or, to make the overall option more flexible, you could rename them so that a person could have their clock 'auto adjust' for a trip they're taking to a different time zone if they planned ahead).

Febs:
Bear in mind that there are some places (Arizona, for example) that do not observe Daylight Savings Time, so there would need to be a setting to turn off DST adjustment entirely.

Genre9mp3:

--- Quote from: Llorean on March 30, 2009, 04:22:49 AM ---Instead of including a time zone database, it seems like you could simply have two options, one of "DST begin date" and "DST end date."
--- End quote ---

That would be a bit pointless though because DST rules don't set specific dates but have rules like "Start: Last Sunday in March - End: Last Sunday in October". This would require the user to calculate the dates every year which would be far more complex than just adjusting the time manually.


--- Quote from: Llorean on March 30, 2009, 04:22:49 AM ---I don't know if internationally DST is always one hour
--- End quote ---

It's indeed one hour for every country that uses the DST system.

I agree with what safetydan said. The only proper way to implement this would be to maintain an up-to-date database of DST rules worldwide and let the user choose his/her location.

JdGordon:

--- Quote from: Genre9mp3 on March 30, 2009, 04:20:10 PM ---It's indeed one hour for every country that uses the DST system.
--- End quote ---

not always... australia did 2 hours DST in 2000 for the olympics.... there is no 1 rule

Llorean:
Keeping a database means we need to actually keep track of DST rule changes everywhere, as they happen. We'd also be the ones yelled at if an error in the database caused someone to miss work, no matter how many places we state there's no warranty.

The advantage of "dates" rather than manually setting is that you can prepare your player in advance, rather than forgetting and having to adjust it later (which can be important for features like an alarm you depend on to go to work/class).

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version