From 9e7218957427c06e1eeb49e067c34906eb1bed7e Mon Sep 17 00:00:00 2001 From: wood1986 Date: Thu, 15 Aug 2013 22:30:57 +0800 Subject: [PATCH] Update date_format-test.js --- test/date_format-test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/date_format-test.js b/test/date_format-test.js index 444446d..6085843 100644 --- a/test/date_format-test.js +++ b/test/date_format-test.js @@ -41,9 +41,10 @@ vows.describe('date_format').addBatch({ ); }, 'should provide a custom format': function(date) { + date.getTimezoneOffset = function() { return 120; }; assert.equal( dateFormat.asString("O.SSS.ss.mm.hh.dd.MM.yy", date), - '+1100.005.30.31.14.11.01.10' + '-0200.005.30.31.14.11.01.10' ); } }