:: Documentation >>

setDataTimezone

Sets the timezone for the datasource date strings.

If the datasource timezone is not specified and the timezone information is not present in the date string - the local timezone offset is used.

null

Syntax

date.setDataTimezone(offset);

Parameters

offset (number) - timezone offset in milliseconds

Examples

var date = new AW.Formats.Date;
date.setDataTimezone(-5*3600000); // GMT-5 hours

Remarks

setDataTimezone() method works only with default format (which does not provide timezone information).

See also

setTextTimezone, setDataFormat, setCellFormat methods

Comments

Documentation:

Recent changes:

2.6.4
2.6.3
2.6.2
2.6.1
2.6.1
2.6.0
2.5.0 - 2.5.6
2.5.6
2.5.0 - 2.5.5
2.5.5