Skip to content

Commit

Permalink
fix: month in RFC3339 util
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomrdias committed May 23, 2019
1 parent e04babc commit 94bd20d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/
module.exports.toRFC3339 = (time) => {
const year = time.getUTCFullYear()
const month = String(time.getUTCMinutes() + 1).padStart(2, '0')
const month = String(time.getUTCMonth() + 1).padStart(2, '0')
const day = String(time.getUTCDate()).padStart(2, '0')
const hour = String(time.getUTCHours()).padStart(2, '0')
const minute = String(time.getUTCMinutes()).padStart(2, '0')
Expand Down

0 comments on commit 94bd20d

Please sign in to comment.