UNPKG

date-fns-tz

Version:

Time zone support for date-fns v2 with the Intl API

5 lines (3 loc) 196 B
/** Regex to identify the presence of a time zone specifier in a date string */ var tzPattern = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/ export default tzPattern