Skip to content

Commit

Permalink
Use Date constructor that is cross browser compatible.
Browse files Browse the repository at this point in the history
  • Loading branch information
rikkert committed Apr 30, 2014
1 parent b02b80e commit 67e1315
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions package.json
Expand Up @@ -39,9 +39,7 @@
"chrome/latest",
"firefox/3.6", "firefox/latest",
"safari/latest",
"opera/latest",
"iphone", "ipad",
"android-browser"
"opera/latest"
]
}
}
2 changes: 1 addition & 1 deletion tests/methods.js
Expand Up @@ -14,7 +14,7 @@ describe('Pikaday public method', function ()
});

it('should return date string, formatted by moment, when date is set', function() {
var date = new Date('2014-04-25'),
var date = new Date(2014, 3, 25),
pikaday = new Pikaday({
format: 'DD-MM-YY'
});
Expand Down

0 comments on commit 67e1315

Please sign in to comment.