summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Reams <jbreams@mongodb.com>2014-08-14 16:51:13 -0400
committerMatt Kangas <matt.kangas@mongodb.com>2014-09-09 16:02:26 -0400
commitc0bc7efa03c71b3929846bad059af5beda5ab231 (patch)
tree3d4a6f71b8e8b93fed3b3fdd9e9b3d7f684478cb
parentd49ca8030322d39d9b02b9dea3b944ff5b34c170 (diff)
downloadmongo-c0bc7efa03c71b3929846bad059af5beda5ab231.tar.gz
SERVER-14904 Change dates in exportimport_date.js to account for different timezones in host environment
Closes #746 Signed-off-by: Benety Goh <benety@mongodb.com> (cherry picked from commit ced73c084c0d391ca49b9b6aa271b6cea6636de0)
-rw-r--r--jstests/tool/exportimport_date.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/tool/exportimport_date.js b/jstests/tool/exportimport_date.js
index b9263e9e50e..57a860ca1a8 100644
--- a/jstests/tool/exportimport_date.js
+++ b/jstests/tool/exportimport_date.js
@@ -9,8 +9,8 @@ src.drop();
dst.drop();
// Insert a date that we can format
-var formatable = ISODate("1970-01-01T05:00:00Z");
-assert.eq(formatable.valueOf(), 18000000);
+var formatable = ISODate("1970-01-02T05:00:00Z");
+assert.eq(formatable.valueOf(), 104400000);
src.insert({ "_id" : formatable });
// Insert a date that we cannot format as an ISODate string