javascript - Firefox returning invalid for timezone offsets? -


i've come across appears odd result firefox. using following format:

2013/01/01 00:00:00-0000 

for date, run issue when timezone goes "positive". example.

new date('2013/01/01 05:00:00-0000') date { tue jan 01 2013 00:00:00 gmt-0500 (est) } 

but.

new date('2013/01/01 05:00:00+0100') date { invalid date } 

i expect rather get:

date { mon dec 31 2012 23:00:00 gmt-0500 (est) }

it appears + causes problems, seems pretty big issue if can't use timezones east of gmt.

edit: added http://jsfiddle.net/utm4f/

run in firefox , return invalid date (i running firefox 20 on os x 10.8.3)

well, found issue throwing whatever can @ it. apparently firefox requires space between time , timezone.

new date('2013/01/01 05:00:00 +0100') new date('2013/01/01 05:00:00 -0100') 

the - timezones won't error without space, + ones will.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -