Skip to content

Commit

Permalink
Merge pull request #30 from melbusbee/master
Browse files Browse the repository at this point in the history
Making work for dates longer than a month
  • Loading branch information
mattneary committed Mar 31, 2015
2 parents 7d94edd + 5a1dc4b commit 49d7b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/jquery.countdown.js
Expand Up @@ -174,7 +174,7 @@ var parseRelativeDate = function(form, options) {
var formatCompute = function(d, options) {
var format = options.format;
var parse = {
d: d.getUTCDate() - 1,
d: Math.floor( ( d - new Date( d.getFullYear(), 0, 1 ) ) / ( 1000 * 60 * 60 * 24 ) ),
h: d.getUTCHours(),
m: d.getUTCMinutes(),
s: d.getUTCSeconds()
Expand Down

0 comments on commit 49d7b9a

Please sign in to comment.