diff --git a/src/charts/chart.js b/src/charts/chart.js index f44e27a..bd9647c 100644 --- a/src/charts/chart.js +++ b/src/charts/chart.js @@ -84,7 +84,7 @@ function initChart() { chart.onSymbolChanged().subscribe(null, changeSymbol) chart.onIntervalChanged().subscribe(null, changeInterval) const tzapi = chart.getTimezoneApi(); - tzapi.onTimezoneChanged().subscribe(null, (tz)=>s.timeZone=tz ) + tzapi.onTimezoneChanged().subscribe(null, (tz)=>{if (tz==='exchange') tz='Etc/UTC'; s.timeZone=tz}) s.timeZone = tzapi.getTimezone().id // chart.onHoveredSourceChanged().subscribe(null, ()=>console.log('hovered source changed', arguments)) // chart.selection().onChanged().subscribe(null, s => console.log('selection', chart.selection().allSources())); diff --git a/src/components/AbsoluteTimeEntry.vue b/src/components/AbsoluteTimeEntry.vue index 27e92aa..adcc6d9 100644 --- a/src/components/AbsoluteTimeEntry.vue +++ b/src/components/AbsoluteTimeEntry.vue @@ -23,7 +23,7 @@ const emit = defineEmits(['update:modelValue']) const hideDetails = true -const now = computed(()=>DateTime.fromMillis(1000*props.modelValue).setZone(s.timeZone)) +const now = computed(()=>DateTime.fromSeconds(props.modelValue).setZone(s.timeZone)) const year = computed({ get() { return now.value.year }, diff --git a/src/components/Status.vue b/src/components/Status.vue index 478e81e..ff30ecd 100644 --- a/src/components/Status.vue +++ b/src/components/Status.vue @@ -2,7 +2,7 @@