From ca70a76db58d5b0799ce3009230033646fe89718 Mon Sep 17 00:00:00 2001 From: aeei Date: Tue, 25 Apr 2017 23:44:11 +0900 Subject: [PATCH] update test code --- src/ax5core/test/test.core.date.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ax5core/test/test.core.date.js b/src/ax5core/test/test.core.date.js index e4835076..558c1951 100644 --- a/src/ax5core/test/test.core.date.js +++ b/src/ax5core/test/test.core.date.js @@ -47,9 +47,10 @@ describe('ax5.util.date TEST', function () { //Usage 07 it('ax5.util.date("")', function () { - var date = new Date(1981, 1, 22); - date.setHours(9); - should.deepEqual(ax5.util.date("1981-02-22T09:00:00+09:00"), date); + var date = new Date(); + date.setUTCFullYear(1979, 11, 16); + date.setUTCHours(09, 00, 00, 000); + should.deepEqual(ax5.util.date("1979-12-16T09:00:00"), date); }); //Usage 08