diff --git a/src/tools/timezone-converter/timezone-converter.vue b/src/tools/timezone-converter/timezone-converter.vue index 29135b37d..32c69269e 100644 --- a/src/tools/timezone-converter/timezone-converter.vue +++ b/src/tools/timezone-converter/timezone-converter.vue @@ -17,6 +17,8 @@ function convertMinsToHrsMins(minutes: number) { const otherTimezones = useStorage<{ name: string }[]>('timezone-conv:zones', [{ name: 'Etc/GMT' }]); const currentTimezone = useStorage('timezone-conv:current', browserTimezone); const use24HourTimeFormat = useStorage('timezone-conv:24h', true); +const format = computed(() => use24HourTimeFormat.value ? 'yyyy-MM-dd HH:mm:ss' : 'yyyy-MM-dd hh:mm:ss a'); +const timePickerProps = computed(() => use24HourTimeFormat.value ? ({ use12Hours: false }) : ({ use12Hours: true })); const now = Date.now(); const currentDatetimeRange = ref<[number, number]>([now, now]); @@ -55,14 +57,17 @@ const countryToTimezonesOutput = computed(() => ctz.getTimezonesForCountry(count mb-2 />