Skip to content

Commit

Permalink
modify for timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
puritys committed Dec 22, 2014
1 parent 5d04ec4 commit 21372e0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,8 @@ describe('Test function: mktime', function() {//{{{
it('Verify normal date to time', function() {
//-28800 timezone+8 (Asia/Taipei)
var begin = phplikeMod.mktime(0, 0, 0, 1, 1, 1970);

var res = phplikeMod.mktime(1, 1, 1, 5, 6, 2014);

// (1399309261
assert.equal(1399338061 + begin, res);
assert.equal(res - begin, 1399334461);
})

});//}}}
Expand Down

0 comments on commit 21372e0

Please sign in to comment.