Re: Timezones

Kimbro Staken <[email protected]> Mon, 19 Jan 2004 06:02:47 -0700
Newsgroups gmane.comp.web.syncato.general
Message-ID <[email protected]>
But, it works for me. :-)

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. It's very bad to be storing localtime as part  
of the data. Need to fix that.

On Jan 19, 2004, at 3:32 AM, Eric van der Vlist wrote:

> Hi,
>
> The timezone seems to be hardcoded at two locations:
>
> ./dist/scripts/lib/Weblog.py:                pubDate =
> root.newChild(None, "pubDate", time.strftime("%Y-%m-%dT%H:%M:%S",
> time.localtime(date)) + "-07:00")
> ./dist/scripts/mtimport.py:            pubDate = root.newChild(None,
> "pubDate", time.strftime("%Y-%m-%dT%H:%M:%S",  
> time.localtime(timestamp))
> + "-07:00")
>
> which seems plain wrong :-) ...
>
> Eric
> --  
> Read me on XML.com.
>                                              
> http://www.xml.com/pub/au/74
> 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
> _______________________________________________
> Syncato-general mailing list
> Syncato-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/syncato-general
>
>
Kimbro Staken
Software, Consulting and Writing http://www.xmldatabases.org/



-------------------------------------------------------
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