You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. call format with ISO string with offset ie "+700"
2. when parseOffset is invoked, parseInt expects to see str[0], str[1], etc
3. str isn't an array
What is the expected output? What do you see instead?
Expect parsed date, see NaN instead
What version of the product are you using? On what operating system?
sorry, unknown, got from code repository 7/14/2009 7:00pm PDT
tested in IE7 and IE8
Please provide any additional information below.
solution:
add the following line of code after "var seconds":
if (str == "Z") { return 0 ; } // UTC, no offset.
var seconds ;
//new code, split string into char array
str=str.split(""); //new code
//end new code
seconds = parseInt(str[0] + str[1] + str[2]) * 3600 ; // e.g., "+05" or
"-08"
Original issue reported on code.google.com by [email protected] on 15 Jul 2009 at 3:53
The text was updated successfully, but these errors were encountered:
Hi -- sorry I've lost track of this. I'll add you as a committer to the
project, and
encourage you to fix this issue and add tests to the unit test suite to prevent
regressions.
Original comment by baron.schwartz on 31 Aug 2009 at 2:25
Original issue reported on code.google.com by
[email protected]
on 15 Jul 2009 at 3:53The text was updated successfully, but these errors were encountered: