CslWorkItemTimestampSerialization

The CslSerializer doesn't convert timestamps to GMT. This may lead to problems. The ISO 8601 representation is

YYYY[-MM[-DD[Thh[:mm[:ss[.s]]][TZD]]]]

The optional value represented by TZD in the pattern is a reference to Universal Coordinated Time (UTC). The TZD value designates the time zone assumed in the time stamp. This is expressed as a positive or negative time offset in hours and possibly minutes, or by the value Z which means "zero offset from UTC".

The CslSerializer shall allways serialize into/deserialize from UTC using a "Z" as TZD. So

ts := Timestamp fromSeconds: (TimeZone default convertLocalSecondsToGMT: Timestamp now asSeconds).
tsString := CslSerializer serialize: ts.

leads to

2007-02-21T18:35:13.000Z

as timestamp string.

Implementation

2007-02-21


CategoryTidelandCsl

last edited 2007-07-30 08:36:26 by FrankMueller