sveltekit-ui 1.0.78 → 1.0.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -245,7 +245,10 @@ export function get_time_full_from_object(val_loc) {
245
245
  hour: null,
246
246
  minute: null,
247
247
  second: null,
248
- timezone: val_loc?.timezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
248
+ timezone:
249
+ val_loc?.timezone && common_timezones.some((h) => h?.text == val_loc?.timezone)
250
+ ? val_loc?.timezone
251
+ : Intl.DateTimeFormat().resolvedOptions().timeZone,
249
252
  datetime: null,
250
253
  datetime_zoned: null,
251
254
  datetime_utc: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sveltekit-ui",
3
- "version": "1.0.78",
3
+ "version": "1.0.79",
4
4
  "description": "A SvelteKit UI component library for building modern web applications",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -245,7 +245,10 @@ export function get_time_full_from_object(val_loc) {
245
245
  hour: null,
246
246
  minute: null,
247
247
  second: null,
248
- timezone: val_loc?.timezone ?? Intl.DateTimeFormat().resolvedOptions().timeZone,
248
+ timezone:
249
+ val_loc?.timezone && common_timezones.some((h) => h?.text == val_loc?.timezone)
250
+ ? val_loc?.timezone
251
+ : Intl.DateTimeFormat().resolvedOptions().timeZone,
249
252
  datetime: null,
250
253
  datetime_zoned: null,
251
254
  datetime_utc: null,