convert config time to utc

This commit is contained in:
lightings 2022-10-28 17:49:37 +08:00
parent a07a538b29
commit 5c22739c85

View File

@ -23,8 +23,8 @@ class Season {
this.seasonList = [];
metaFactory.traverseMetaList("RankSeason", (config, idx) => {
this.seasonList.push({
start_time: new Date(config.start_time).getTime()/1000,
end_time: new Date(config.end_time).getTime()/1000,
start_time: new Date(config.start_time+" GMT+0000").getTime()/1000,
end_time: new Date(config.end_time+" GMT+0000").getTime()/1000,
id: config.id
});
return true;