timezone - Is browser Date#toString time zone reliable -


most browsers can display kind of timezone information: example new date().tostring() returns "fri apr 07 2017 02:20:12 gmt-0500 (cdt)".

however see many solutions not use @ all, instead try guess timezone using several methods.

if new date().tostring() return timezone information, correct? or can browsers return wrong info too?

the value in parenthesis not defined in ecmascript specification. each implementation decide want show there. thus, value reliable implementation makes it. 1 cannot state in general, other expect inconsistent results.

that said, many modern implementations take values same source data, the unicode cldr project, way of icu. give localized text value, such "eastern daylight time" in english. (not "edt")


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -