Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxinleo authored Sep 7, 2022
1 parent 5e50173 commit c7e97fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const getCallbackTemplateParams = (messageReply) => {
const mainForTest = async () => {
// 测试UTC时间在actions里的区别
console.log('dayjs', dayjs())
console.log('selfDayjs', selfDayjs())
console.log('selfDayjs', selfDayjs('2022-09-08'))
console.log('selfDayjs 离节日', Math.ceil(selfDayjs(selfDayjs().format('YYYY') + '-09-08').diff(selfDayjs(), 'day', true)))
console.log('selfDayjs 周岁', selfDayjs().diff('2021-01-01', 'year'))
console.log('selfDayjs 恋爱N天', Math.ceil(selfDayjs().diff(selfDayjs('2022-09-06'), 'day', true)))
Expand Down

0 comments on commit c7e97fd

Please sign in to comment.