Skip to content

Commit

Permalink
fix for timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
puritys committed Dec 22, 2014
1 parent 21372e0 commit 5e03bf6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ describe('Test function: getcwd', function() {//{{{
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);
assert.equal(res - begin, 1399334461);
var begin = phplikeMod.mktime(1, 1, 1, 5, 6, 2014);
var res = phplikeMod.mktime(2, 1, 1, 5, 6, 2014);
assert.equal(res - begin, 3600);
})

});//}}}
Expand Down

0 comments on commit 5e03bf6

Please sign in to comment.