xbx #143

Manually merged
theluyuan merged 10 commits from xbx into master 2020-11-20 09:52:44 +00:00
Showing only changes of commit b5edb78131 - Show all commits

View File

@ -73,7 +73,12 @@ export function getweek(time: string, id: string,zhou?: number){
dayjs.extend(timezone)
const days: any = dayjs;
console.log(id, 11111)
let now = days((!time ? undefined : time)).tz(id)
let now;
try {
now = days((!time ? undefined : time)).tz(id)
} catch (error) {
now = days(undefined).tz(id)
}
console.log(now, 11111)
if(zhou != undefined){