Re: Timezones
Eric van der Vlist <vdv-LWD9zWpAXjRWk0Htik3J/[email protected]> Mon, 19 Jan 2004 14:24:31 +0100
| Newsgroups | gmane.comp.web.syncato.general |
|---|---|
| Organization | Dyomedea (http://dyomedea.com) |
| Message-ID | <1074518668.24869.468.camel@delleric> |
On Mon, 2004-01-19 at 14:02, Kimbro Staken wrote:
> But, it works for me. :-)
You're lucky that Arizona doesn't switch to summertime, otherwise, you'd
need to change this value twice a year!
I have changed -07 into +01 which is the right thing to do to get a
correct ISO8601 date in winter in Paris but the XSLT format gives me a
time which is 1 hour in advance to what it should so I suspect another
tricky problem here!
> You're right of course, that is wrong. Here' s the comment above that
> line.
>
> # TODO this shouldn't really use localtime as the ISO8601 date should
> be GMT. Just not sure how to
> # convert the time using XSL-T otherwise.
>
> When I originally wrote that I wasn't sure how to handle timezone
> adjustments from XSL-T.
Yes, EXSLT seems to miss a feature here...
> It's very bad to be storing localtime as part
> of the data. Need to fix that.
IMO, the proper thing to do would be to define the preferred timezone in
the config file (and eventually use the machine's one if not defined).
It could also be nice to be able to override this in the query string so
that I could see your blog in my timezone...
What about writing an libxslt extension in Python as you've described in
your blog?
Eric
--
Freelance consulting and training.
http://dyomedea.com/english/
Upcoming XML schema languages tutorial:
- Santa Clara -half day- (15/03/2004) http://masl.to/?J24916E96
------------------------------------------------------------------------
Eric van der Vlist http://xmlfr.org http://dyomedea.com
(ISO) RELAX NG ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema
------------------------------------------------------------------------
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn