Skip to content

Commit

Permalink
Untracked: Fix prerequisite date parsing for whole dates (fixed) (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlang42 authored Feb 2, 2024
1 parent 4a9afb1 commit 4004fa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Prerequisites.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function processPrerequisiteState(boardId, state) {
if (duplicateNames.includes(prerequisiteName)) {
duplicates.push(prerequisiteName);
} else if (completed == null) {
var possible_date = Date.parse(prerequisiteName);
var possible_date = Date.parse(prerequisiteName + " "); // without the space, a date without a time will be parsed in GMT rather than local time zone
if (!isNaN(possible_date)) {
var d = new Date(possible_date);
if (d > now) {
Expand Down

0 comments on commit 4004fa0

Please sign in to comment.