Skip to content

Commit

Permalink
js date conversion bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mohammadhasanzadeh authored Mar 10, 2023
1 parent 32ecb7f commit ebec961
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function is_lower_equal_than(system, first_date, second_date)
let temp = system.to_gregorian(first_date.year, first_date.month, first_date.day);
const qdate_first_date = new Date(temp.year, (temp.month - 1), temp.day);
temp = system.to_gregorian(second_date.year, second_date.month, second_date.day);
const qdate_second_date = new Date(temp.year, (temp.month), temp.day);
const qdate_second_date = new Date(temp.year, (temp.month - 1), temp.day);
return (qdate_first_date <= qdate_second_date);
}

Expand Down

0 comments on commit ebec961

Please sign in to comment.