Supposing I have
- a date (i.e. an UTC timestamp),
- a location (e.g. "Paris") that I may encode as I wish (and which isn't the one of the browser),
- no permanent internet access
then what can I do if I want to format my date for this specific location, correctly dealing with daylight saving time when/if it occurs ? I'd prefer a standard based solution. I expect the solution to either include a reliable table of some sorts or to call some browser/computer magic.
Of course, as the offset is dependent of the moment, I can't just store the location as an offset.
Here are 2 points which ease the problem :
- I won't deal with dates before 2010
- if some country decides to change the rules regarding its timezone, it's acceptable for me to release a new code/library