Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
Fix for j formatting option
Browse files Browse the repository at this point in the history
  • Loading branch information
nazar-pc committed Feb 20, 2018
1 parent 23561ce commit 1a271f7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
3.1.2 (20 February, 2018)
* Fix for `j` formatting option

3.1.0 (13 February, 2018)
* License changed from MIT to 0BSD
* Removed Bower support, use NPM instead
Expand Down
2 changes: 1 addition & 1 deletion dist/pickmeup.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion js/pickmeup.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
var now = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0);
var then = new Date(date.getFullYear(), 0, 0, 0, 0, 0);
var time = now - then;
return Math.floor(time / 24 * 60 * 60 * 1000);
return Math.floor(time / (24 * 60 * 60 * 1000));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"date",
"calendar"
],
"version" : "3.1.1",
"version" : "3.1.2",
"homepage" : "https://github.com/nazar-pc/PickMeUp",
"author" : "Nazar Mokrynskyi <[email protected]>",
"repository" : {
Expand Down

0 comments on commit 1a271f7

Please sign in to comment.