Skip to content

Commit

Permalink
🎨 Set flashcard due time in local #12514
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 18, 2024
1 parent 6375f96 commit 026423b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/model/flashcard.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func SetFlashcardsDueTime(cardDues []*SetFlashcardDueTime) (err error) {
continue
}

due, parseErr := time.Parse("20060102150405", cardDue.Due)
due, parseErr := time.ParseInLocation("20060102150405", cardDue.Due, time.Local)
if nil != parseErr {
logging.LogErrorf("parse due time [%s] failed: %s", cardDue.Due, err)
err = parseErr
Expand Down

0 comments on commit 026423b

Please sign in to comment.