mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2024-11-22 13:20:23 +08:00
fix(uigf): incorrect timezone
This commit is contained in:
parent
2f14a4d320
commit
2814ed211b
@ -23,6 +23,15 @@ const start = async () => {
|
||||
if (!data.result.size) {
|
||||
throw new Error('数据为空')
|
||||
}
|
||||
const serverTimeZone = new Map([
|
||||
["prod_gf_cn", 8]
|
||||
])
|
||||
|
||||
let timezone
|
||||
timezone = serverTimeZone.get(data.region)
|
||||
if(!timezone) {
|
||||
throw new Error('服务器时区不支持')
|
||||
}
|
||||
const result = {
|
||||
info: {
|
||||
export_timestamp: Math.ceil(Date.now() / 1000),
|
||||
@ -33,7 +42,7 @@ const start = async () => {
|
||||
nap: [
|
||||
{
|
||||
uid: current,
|
||||
timezone: data.region_time_zone,
|
||||
timezone: timezone,
|
||||
lang: data.lang,
|
||||
list: []
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user