dojo.date.getTimezoneName
dojo.require("dojo.date");
defined in dojo/date.js
Try to get time zone info from toString or toLocaleString method of the Date object -- UTC offset is not a time zone. See http://www.twinsun.com/tz/tz-link.htm Note: results may be inconsistent across browsers.
Usage
function (/*Date*/ dateObject) (view source)
parameter | type | description |
---|---|---|
dateObject | Date | Needed because the timezone may vary with time (daylight savings) |