Skip to content

Commit ee0768b

Browse files
committed
docs: Fix format in API examples
1 parent 3733e0a commit ee0768b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ const { formatZonedTime } = require('timezone-support/dist/parse-format')
162162

163163
const time = { year: 2018, month: 9, day: 2, hours: 10, minutes: 0,
164164
zone: { abbreviation: 'CEST', offset: -120 } }
165-
const format = 'D.M.YYYY H:mm:ss [z]Z'
165+
const format = 'D.M.YYYY H:mm zZ'
166166
const output = formatZonedTime(time, format)
167167
// Returns "2.9.2018 10:00 CEST+02:00"
168168
```
@@ -298,7 +298,7 @@ Parses a date string using a custom format pattern to a [time object]. If the st
298298
const { parseZonedTime } = require('timezone-support/dist/parse-format')
299299

300300
const input = '2.9.2018 10:00 CEST+02:00'
301-
const format = 'D.M YYYY H:mm:ss [z]Z'
301+
const format = 'D.M.YYYY H:mm zZ'
302302
const time = parseZonedTime(input, format)
303303
// Returns { year: 2018, month: 9, day: 2, hours: 10, minutes: 0,
304304
// zone: { abbreviation: 'CEST', offset: -120 } }

0 commit comments

Comments
 (0)