Skip to content

Commit

Permalink
%s: seconds, not ms (closes samsonjs#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewschaaf committed Jun 7, 2011
1 parent 644bb65 commit 2644ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -100,7 +100,7 @@
case 'R': return strftime(locale.formats.R || '%H:%M', d, locale);
case 'r': return strftime(locale.formats.r || '%I:%M:%S %p', d, locale);
case 'S': return pad(d.getSeconds());
case 's': return d.getTime();
case 's': return Math.floor(d.getTime() / 1000);
case 'T': return strftime(locale.formats.T || '%H:%M:%S', d, locale);
case 't': return '\t';
case 'u':
Expand Down

0 comments on commit 2644ab0

Please sign in to comment.