Commit 2015f154 authored by 神楽坂玲奈's avatar 神楽坂玲奈

timezone

parent 76928871
......@@ -31,7 +31,7 @@ settings.BANNED_IP = []
settings.modules.hang_timeout = 90
settings.version = parseInt(fs.readFileSync('ygopro/gframe/game.cpp', 'utf8').match(/PRO_VERSION = ([x\d]+)/)[1], '16')
settings.lflist = (for list in fs.readFileSync('ygopro/lflist.conf', 'utf8').match(/!.*/g)
{date: moment(list.match(/!([\d\.]+)/)[1], 'YYYY.MM.DD'), tcg: list.indexOf('TCG') != -1})
{date: moment(list.match(/!([\d\.]+)/)[1], 'YYYY.MM.DD').utcOffset("-08:00"), tcg: list.indexOf('TCG') != -1})
#组件
ygopro = require './ygopro.js'
......
......@@ -47,7 +47,7 @@
for (k = 0, len = ref.length; k < len; k++) {
list = ref[k];
results.push({
date: moment(list.match(/!([\d\.]+)/)[1], 'YYYY.MM.DD'),
date: moment(list.match(/!([\d\.]+)/)[1], 'YYYY.MM.DD').utcOffset("-08:00"),
tcg: list.indexOf('TCG') !== -1
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment