添加天梯排行榜,修复setHour有时差的bug

This commit is contained in:
luying
2020-11-06 17:31:23 +08:00
parent bd93d9dc1c
commit 04ecef03b5
29 changed files with 285 additions and 148 deletions

View File

@@ -8,13 +8,6 @@ export default class HomeController extends Controller {
public async dev() {
const { ctx } = this;
let time1 = new Date();
let time2 = Number(time1);
let offset = time1.getTimezoneOffset();
let today = time1.setHours(0, 0, 0, 0);
console.log(time1, time2, offset, today);
await ctx.render('index',{
title: 'xxx'
});