sobhagya-sahu / datejs

Automatically exported from code.google.com/p/datejs
0 stars 0 forks source link

doesn't handle +0000 #109

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Date.parse("2010-09-18 12:00:00 +0000")

What is the expected output? What do you see instead?

Expect a Date like: "2010-09-18 08:00:00 GMT-0400"

Instead, I get the original time (12:00) AND a specified timezone offset (in my 
case GMT-0400), like "2010-09-18 12:00:00 GMT-0400".

What version of the product are you using? On what operating system?

Please provide any additional information below.

Probably the comparison "if (this.timezoneOffset)" is what does it.

Original issue reported on code.google.com by petera...@gmail.com on 14 Sep 2010 at 5:58

GoogleCodeExporter commented 8 years ago
that was indeed the case. replace with if (this.timezoneOffset !== undefined) 
(there are two occurrences) and it worked.

Original comment by chaj...@gmail.com on 19 Mar 2012 at 7:36

GoogleCodeExporter commented 8 years ago
works fine in the current build on my fork: 
https://github.com/abritinthebay/datejs/

Original comment by darkcr...@gmail.com on 16 Sep 2013 at 7:29