Skip to content

Commit

Permalink
Add colon between hour and minutes for formatRFC3339 (#1549) (fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
imballinst authored and kossnocorp committed Nov 22, 2019
1 parent 6fe156d commit e1dced2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/formatRFC3339/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default function formatRFC3339(dirtyDate, dirtyOptions) {
// If less than 0, the sign is +, because it is ahead of time.
const sign = tzOffset < 0 ? '+' : '-'

offset = `${sign}${hourOffset}${minuteOffset}`
offset = `${sign}${hourOffset}:${minuteOffset}`
} else {
offset = 'Z'
}
Expand Down
2 changes: 1 addition & 1 deletion src/formatRFC3339/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function generateOffset(date) {
// If less than 0, the sign is +, because it is ahead of time.
const sign = tzOffset < 0 ? '+' : '-'

offset = `${sign}${hourOffset}${minuteOffset}`
offset = `${sign}${hourOffset}:${minuteOffset}`
} else {
offset = 'Z'
}
Expand Down

0 comments on commit e1dced2

Please sign in to comment.