Simon Willison’s Weblog


Solution to the timezone problem

7th September 2002

Hixie has a brilliant solution to the time zone problem in the form of a clever piece of XBL by Nicolás Lichtmier. The small script can be bound to an element containing a date in UTC and will quietly replace it with the time in the user’s current timezone using Mozilla’s built in UTC handling functions. Naturally it only works in Mozilla, but I imagine the script could be emulated using Internet Explorer behaviors.

This is Solution to the timezone problem by Simon Willison, posted on 7th September 2002.

Next: Excellent RSS tutorial

Previous: Pingback server code

Previously hosted at