diff --git a/docs/en/Plugin.md b/docs/en/Plugin.md index 4952e9cf8..75f0c7af3 100644 --- a/docs/en/Plugin.md +++ b/docs/en/Plugin.md @@ -234,7 +234,6 @@ dayjs('05/02/69 1:02:03 PM -05:00', 'MM/DD/YY H:mm:ss A Z') | `S` | 0-9 | Hundreds of milliseconds, 1-digit | | `SS` | 00-99 | Tens of milliseconds, 2-digits | | `SSS` | 000-999 | Milliseconds, 3-digits | -| `z` | EST | Time zone abbreviation | | `Z` | -5:00 | Offset from UTC | | `ZZ` | -0500 | Compact offset from UTC, 2-digits | | `A` | AM PM | Post or ante meridiem, upper-case | diff --git a/docs/es-es/Plugin.md b/docs/es-es/Plugin.md index ec924f05e..daa1fb079 100644 --- a/docs/es-es/Plugin.md +++ b/docs/es-es/Plugin.md @@ -238,7 +238,6 @@ dayjs('2010-04-01').quarter(); // 2 | `S` | 0-9 | Hundreds of milliseconds, 1-digit | | `SS` | 00-99 | Tens of milliseconds, 2-digits | | `SSS` | 000-999 | Milliseconds, 3-digits | -| `z` | EST | Time zone abbreviation | | `Z` | -5:00 | Offset from UTC | | `ZZ` | -0500 | Compact offset from UTC, 2-digits | | `A` | AM PM | Post or ante meridiem, upper-case | diff --git a/docs/ja/Plugin.md b/docs/ja/Plugin.md index be058137e..6831a689e 100644 --- a/docs/ja/Plugin.md +++ b/docs/ja/Plugin.md @@ -243,7 +243,6 @@ dayjs('05/02/69 1:02:03 PM -05:00', 'MM/DD/YY H:mm:ss A Z') | `S` | 0-9 | Hundreds of milliseconds, 1-digit | | `SS` | 00-99 | Tens of milliseconds, 2-digits | | `SSS` | 000-999 | Milliseconds, 3-digits | -| `z` | EST | Time zone abbreviation | | `Z` | -5:00 | Offset from UTC | | `ZZ` | -0500 | Compact offset from UTC, 2-digits | | `A` | AM PM | Post or ante meridiem, upper-case | diff --git a/docs/ko/Plugin.md b/docs/ko/Plugin.md index d53b85bc4..357b2be11 100644 --- a/docs/ko/Plugin.md +++ b/docs/ko/Plugin.md @@ -235,7 +235,6 @@ dayjs('05/02/69 1:02:03 PM -05:00', 'MM/DD/YY H:mm:ss A Z') | `S` | 0-9 | Hundreds of milliseconds, 1-digit | | `SS` | 00-99 | Tens of milliseconds, 2-digits | | `SSS` | 000-999 | Milliseconds, 3-digits | -| `z` | EST | Time zone abbreviation | | `Z` | -5:00 | Offset from UTC | | `ZZ` | -0500 | Compact offset from UTC, 2-digits | | `A` | AM PM | Post or ante meridiem, upper-case | diff --git a/docs/pt-br/Plugin.md b/docs/pt-br/Plugin.md index e6516bc05..45fb31567 100644 --- a/docs/pt-br/Plugin.md +++ b/docs/pt-br/Plugin.md @@ -234,7 +234,6 @@ dayjs('05/02/69 1:02:03 PM -05:00', 'MM/DD/YY H:mm:ss A Z') | `S` | 0-9 | Hundreds of milliseconds, 1-digit | | `SS` | 00-99 | Tens of milliseconds, 2-digits | | `SSS` | 000-999 | Milliseconds, 3-digits | -| `z` | EST | Time zone abbreviation | | `Z` | -5:00 | Offset from UTC | | `ZZ` | -0500 | Compact offset from UTC, 2-digits | | `A` | AM PM | Post or ante meridiem, upper-case | diff --git a/docs/zh-cn/Plugin.md b/docs/zh-cn/Plugin.md index 856107191..b06741025 100644 --- a/docs/zh-cn/Plugin.md +++ b/docs/zh-cn/Plugin.md @@ -234,7 +234,6 @@ dayjs('05/02/69 1:02:03 PM -05:00', 'MM/DD/YY H:mm:ss A Z') | `S` | 0-9 | Hundreds of milliseconds, 1-digit | | `SS` | 00-99 | Tens of milliseconds, 2-digits | | `SSS` | 000-999 | Milliseconds, 3-digits | -| `z` | EST | Time zone abbreviation | | `Z` | -5:00 | Offset from UTC | | `ZZ` | -0500 | Compact offset from UTC, 2-digits | | `A` | AM PM | Post or ante meridiem, upper-case | diff --git a/src/plugin/customParseFormat/parseFormattedInput.js b/src/plugin/customParseFormat/parseFormattedInput.js index c3677edc7..f02588b5d 100644 --- a/src/plugin/customParseFormat/parseFormattedInput.js +++ b/src/plugin/customParseFormat/parseFormattedInput.js @@ -9,7 +9,6 @@ const matchUpperCaseAMPM = /[AP]M/ const matchLowerCaseAMPM = /[ap]m/ const matchSigned = /[+-]?\d+/ // -inf - inf const matchOffset = /[+-]\d\d:?\d\d/ // +00:00 -00:00 +0000 or -0000 -const matchAbbreviation = /[A-Z]{3,4}/ // CET function offsetFromString(string) { const parts = string.match(/([+-]|\d\d)/g) @@ -57,10 +56,6 @@ const expressions = { this.year = input + (input > 68 ? 1900 : 2000) }], YYYY: [match4, addInput('year')], - z: [matchAbbreviation, function (input) { - const zone = this.zone || (this.zone = {}) - zone.abbreviation = input - }], Z: [matchOffset, function (input) { const zone = this.zone || (this.zone = {}) zone.offset = offsetFromString(input)