@shopify/dates
Advanced tools
Comparing version 0.0.0-snapshot-20250108014630 to 0.0.0-snapshot-20250108211454
@@ -5,2 +5,4 @@ 'use strict'; | ||
var mapDeprecatedTimezones = require('../map-deprecated-timezones.js'); | ||
const intl = new Map(); | ||
@@ -43,3 +45,6 @@ function memoizedGetDateTimeFormat(locales, options) { | ||
} | ||
return memoizedGetDateTimeFormat(locales, options).format(date); | ||
return memoizedGetDateTimeFormat(locales, { | ||
...options, | ||
timeZone: options.timeZone ? mapDeprecatedTimezones.mapDeprecatedTimezones(options.timeZone) : undefined | ||
}).format(date); | ||
} | ||
@@ -46,0 +51,0 @@ function dateTimeFormatCacheKey(locales, options = {}) { |
{ | ||
"name": "@shopify/dates", | ||
"version": "0.0.0-snapshot-20250108014630", | ||
"version": "0.0.0-snapshot-20250108211454", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Lightweight date operations library", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
107538
1691