diff --git a/lib/index.js b/lib/index.js index 614b8f2..1772807 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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':