sobhagya-sahu / datejs

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

TimeZone is broken #126

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. get a date in GMT
2. parse it with date.js
3. print it back out

What is the expected output? What do you see instead?
Expect to be able to define the TimeZone BEFORE parsing or this will never 
work,  or date.js should recognize "GMT" as a timezone indicator in the input 
string.
Actual result is that parsed data is always parsed as the local timezone of the 
computer.  Subsequent changes to the timezone change the time.

What version of the product are you using? On what operating system?
Latests downloaded today, running on node.js on RedHat Fedora Linux

Please provide any additional information below.

Original issue reported on code.google.com by teknop...@gmail.com on 14 Jul 2011 at 9:02

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

Original comment by darkcr...@gmail.com on 10 Sep 2013 at 12:10