[worldKit-dev] Time format parse issue

Mikel Maron mikel_maron at yahoo.com
Tue Apr 3 08:45:18 PDT 2007


Hi

worldkit is using the W3CDateTime class written by Mike Chambers.

http://weblogs.macromedia.com/mesh/archives/2004/02/w3cdatetime_act.html
http://worldkit.org/svn/worldkit/com/brainoff/W3CDateTime.as

Looking at the w3c DateTime Note
http://www.w3.org/TR/NOTE-datetime

doesn't it say that the TZD should be +hh:mm or -hh:mm?

Mikel

----- Original Message ----
From: Andrei BEJENARU <abejenaru at gmail.com>
To: worldkit-dev at lists.brainoff.com
Sent: Tuesday, April 3, 2007 10:52:40 AM
Subject: [worldKit-dev] Time format parse issue

Hi,

I was trying to use the time navigation with timestamps in RFC 2822's
format (Tue, 03 Apr 2007, 10:00:00 +0300), and worldKit completely
ignored the timezone offset (resulting in interpreting those dates as
UTC and displaying them displaced by 3 hours). When switching to the
ISO 8601 format, everything went fine.

I figured it must be due to the fact that in ISO 8601 format the time
offset has a ":" character separating hours and minutes and adding
that separation to RFC's format made it work ok.

The problem is that RFC's format specifies that the timezone is a 4
digit string, prefixed with "+" or "-", while worldKit seems to
respond to a ISO 8601-like timezone format.

Andrei
_______________________________________________
worldkit-dev mailing list
worldkit-dev at lists.brainoff.com
http://lists.brainoff.com/listinfo.cgi/worldkit-dev-brainoff.com






More information about the worldkit-dev mailing list