From b3a2c2cc09447374e08de563fff9d31a00cf589e Mon Sep 17 00:00:00 2001 From: Silent YANG Date: Sun, 27 Oct 2024 16:04:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=BC=E5=AE=B9=E4=B8=8D=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/list/sat/index.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/list/sat/index.vue b/src/views/list/sat/index.vue index 7588e79b..74458cd2 100644 --- a/src/views/list/sat/index.vue +++ b/src/views/list/sat/index.vue @@ -185,7 +185,7 @@ onMounted(async ()=>{ state.alt = parseFloat(altRef.value.inputRef.modelValue || '0') state.timer = setInterval(()=>{ - state.dt = new Date().toLocaleString('zh-CN', { timeZone: 'Asia/Shanghai' }) + state.dt = new Date().toLocaleString() localStorage.setItem('myLng', state.lng.toString()); localStorage.setItem('myLat', state.lat.toString()); localStorage.setItem('myAlt', state.alt.toString()); @@ -342,7 +342,8 @@ const getPass = async () => { sat_line_2: state.satData.find(e => e.name == state.sat).path[1], lat: state.lat, lng: state.lng, - alt: state.alt + alt: state.alt, + tz: Intl.DateTimeFormat().resolvedOptions().timeZone }) })).json() const passOption = [] @@ -394,7 +395,8 @@ const writeIt = async () => { tx: state.tx, rx: state.rx, pass_time: state.pass.split('|')[0], - departure_time: state.pass.split('|')[1] + departure_time: state.pass.split('|')[1], + tz: Intl.DateTimeFormat().resolvedOptions().timeZone }) })).json()