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:
|
|
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
|
@@ -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:
|
|
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,
|