-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 1.6.3
-
Component/s: Shell
-
None
-
Environment:roy@santogold:~$ uname -a
Linux santogold 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:52:42 UTC 2010 x86_64 GNU/Linux
roy@santogold:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
-
Linux
If you print a Date in the shell, the stored value is correctly converted to system local time, and correctly annotated with a GMT offset, but is incorrectly labeled with the name of the local timezone. In the example below, the first date (November 1) is printed correctly, but the second date, while showing the correct GMT-0500 offset, is mis-labeled "EST". It should be "EDT".
roy@santogold:~$ mongo
MongoDB shell version: 1.6.3
connecting to: test
> new Date("November 1, 2010 10:00:00")
"Mon Nov 01 2010 10:00:00 GMT-0400 (EST)"
> new Date("November 15, 2010 10:00:00")
"Mon Nov 15 2010 10:00:00 GMT-0500 (EST)"
See also http://groups.google.com/group/mongodb-user/browse_thread/thread/3e87431a758cd3d4/