Skip to content

Commit

Permalink
Update time zone abbreviations. Uses list of time zone abbreviations. h…
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Badeau committed Mar 10, 2021
1 parent f309c8a commit 1d1240b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dateformat.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
(function (global) {
const dateFormat = (() => {
const token = /d{1,4}|D{3,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|W{1,2}|[LlopSZN]|"[^"]*"|'[^']*'/g;
const timezone = /\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;
const timezone = /\b(?:[A-Z]{1,3}[A-Z]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g;
const timezoneClip = /[^-+\dA-Z]/g;

// Regexes and supporting functions are cached through closure
Expand Down

0 comments on commit 1d1240b

Please sign in to comment.