Javascript Date function error in EEST time zones

new Date("May 27, 2011, 1:00 pm EEST")

Firebug answer:

Date {Invalid Date}

Is this a known javascript bug? how do you interpret east european daylight saving time zone in javascript with date?

I can change the time zone to +03: 00 or +0300, for example, but then it will not be as user friendly, because im using <abbr> and with jQuery I will format each abbreviation innerHTML, what is its value in the header, so when you hover over it, I still want the tooltip to display "May 27, 2011, 13:00 EEST", but in innerHTML I only need to "May 27, 2011"

<abbr class="timestamp blue" title="May 27, 2011, 1:00 pm EEST">May 27, 2011</abbr>

However, due to EEST, I get this

<abbr class="timestamp blue" title="May 27, 2011, 1:00 pm EEST">NaN</abbr>

If I change EEST to something more common, like EST or GMT, then there is no problem, itโ€™s strange.

+3
1

ECMA- script (15.9.1.15 ):

CET, EST .. . ISO 8601 .

ISO 8601

ISO 8601 . UTC

: . , EEST , Date javascript. "UTC" +/- .

@ -

+4

All Articles