JavaScript accepts these time zones:
Time Zone | Description |
---|---|
UTC | Coordinated Universal Time |
GMT | Greenwich Mean Time |
EDT | (US) Eastern Daylight Time |
CDT | (US) Central Daylight Time |
MDT | (US) Mountain Daylight Time |
PDT | (US) Pacific Daylight Time |
EST | (US) Eastern Standard Time |
CST | (US) Central Standard Time |
MST | (US) Mountain Standard Time |
PST | (US) Pacific Standard Time |
When setting a date, without specifying the time zone, JavaScript will use the browser's time zone. When getting a date, without specifying the time zone, the result is converted to the browser's time zone. In other words: If a date/time is created in GMT (Greenwich Mean Time), the date/time will be converted to CDT (Central US Daylight Time) if a user browses from central US.