[Laszlo-dev] LzDataElement.valueToElement and JavaScript Type Date generate UTC timeStamps
seba.wagner@gmail.com
seba.wagner at gmail.com
Wed Mar 21 07:26:26 PDT 2012
Hi,
there seems to be a non standard convertion of Date types when using
LzDataElement.valueToElement:
If you have an object like that:
var tObject = new Object();
tObject.startTime = new Date()
LzDataElement.valueToElement(tObject);
the resulting XML produced by LzDataElement looks like that:
2012-03-22T15:00:00.000Z
While actually the correct would be (in my time zone GMT+1):
2012-03-22T06:00:00.769+01:00
=> this seems to be like the standard conversion XML format for date/time.
Why did you prefer using UTC in those timestamps?
Sebastian
--
Sebastian Wagner
http://www.openmeetings.de
http://incubator.apache.org/openmeetings/
http://www.webbase-design.de
http://www.wagner-sebastian.com
seba.wagner at gmail.com
More information about the Laszlo-dev
mailing list