mirror of
https://github.com/earthjasonlin/zzz-signal-search-export.git
synced 2024-11-22 21:30:22 +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) {
|
if (!data.result.size) {
|
||||||
throw new Error('数据为空')
|
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 = {
|
const result = {
|
||||||
info: {
|
info: {
|
||||||
export_timestamp: Math.ceil(Date.now() / 1000),
|
export_timestamp: Math.ceil(Date.now() / 1000),
|
||||||
@ -33,7 +42,7 @@ const start = async () => {
|
|||||||
nap: [
|
nap: [
|
||||||
{
|
{
|
||||||
uid: current,
|
uid: current,
|
||||||
timezone: data.region_time_zone,
|
timezone: timezone,
|
||||||
lang: data.lang,
|
lang: data.lang,
|
||||||
list: []
|
list: []
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user