Skip to content

Commit

Permalink
Merge pull request #91 from taichanNE30/beta-until
Browse files Browse the repository at this point in the history
1.1.0-beta.3
  • Loading branch information
tai-cha authored Oct 4, 2023
2 parents 360e145 + 9b8071d commit c75fdbe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yamag",
"version": "1.1.0-beta.2",
"version": "1.1.0-beta.3",
"description": "Yet Another Misskey Accuracy Game app",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const recordTime = (() => {
let target = new Date(today.getFullYear(), today.getMonth(), today.getDate(), recordTimeHour, recordTimeMinute, 0, 0)
const todayMidnight = new Date(today.getFullYear(), today.getMonth(), today.getDate(), 0, 0, 0, 0)
// 一日前 = 86_400_000秒前
if (target.getTime() - todayMidnight.getTime()) target = new Date(target.getTime() - 86_400_000)
if (target.getTime() - todayMidnight.getTime() < 0) target = new Date(target.getTime() - 86_400_000)
return target
})()

Expand Down

0 comments on commit c75fdbe

Please sign in to comment.