事件本检查时间刷新并推送

This commit is contained in:
luying
2020-10-09 20:26:53 +08:00
parent 50c4aeea2a
commit 2a62b31797
17 changed files with 470 additions and 35 deletions

View File

@@ -8,6 +8,13 @@ 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'
});