On 2011-10-18 8:29 AM, Matthew Fenelon wrote:
> Currently, to display dates and times in a user's local timezone, websites
> can apply two solutions. By using a user's IP address a guess can be made as
> to the user's location and thus their timezone. This mechanism breaks down
> when sites are accessed through intermediary servers. It also requires each
> server to implement a guessing mechanism. Another way is to manually ask the
> user what timezone they would prefer and save their choice. This solution is
> laborious for the user and it must be updated manually when system's are
> accessed from different timezones.
It seems to me that your goals would be better served by adding
timezone-adjustment logic to the HTML5 <time> element. If the browser sees
<time datetime="2011-10-19T10:02:31-07:00"
format="%A, %B %e, %Y at %H:%M %p"
>Wednesday, October 19, 2001 at 10:02 AM</time>
it has all the information it needs to correct the visible date to the
user's time zone. No server-side processing or new HTTP headers
required. You would have to get the @format attribute added to HTML5; I
think that's the biggest missing piece.
zw