3.2.0

setTextTimezone

It looks like the argument taken by setTextTimezone is in hours not milliseconds.

The line below sets the time forward 7 hours and not 7 milliseconds
date.setTextTimezone(-7);
Florin
January 23,
No, it does not. What you see is probably related to your local timezone offset - try adding timezone to the input date or use setDataTimezone(0)

var fmt = new AW.Formats.Date;

fmt.setTextTimezone(-7);
fmt.setTextFormat("yyyy-mm-dd hh:mm:ss");

fmt.setDataTimezone(0);
fmt.setDataFormat("iso8601");

var txt = fmt.dataToText("2007-01-24T00:00+00:00");

document.write(txt);
Alex (ActiveWidgets)
January 24,

This topic is archived.

See also:


Back to support forum