[worldKit-dev] Time format parse issue

Andrei BEJENARU abejenaru at gmail.com
Tue Apr 3 02:52:40 PDT 2007


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



More information about the worldkit-dev mailing list