Skip to content

Commit

Permalink
fix(Modules): date
Browse files Browse the repository at this point in the history
date
  • Loading branch information
snomiao committed Apr 21, 2023
1 parent de125fe commit cf36b5e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Modules/App-OneNote2019.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,12 @@ OneNote2019_ToggleTODO(){
calcCode =
(
'('
+ new Date(+new Date("%dateString%".replace(/|/g, '-').replace(/|星期.|.曜日/g, '').trim())+8*3600e3)
+ new Date(+new Date(
"%dateString%"
.replace(/星期.|.曜日/g, '')
.replace(//g, '')
.replace(/|/g,'-')
.trim()) +-new Date().getTimezoneOffset()*60e3)
.toISOString()
.slice(0, 10)
.replace(/-/g, '')
Expand Down

0 comments on commit cf36b5e

Please sign in to comment.