UNPKG

date-fns-tz

Version:

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

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