Skip to content

Commit

Permalink
Merge pull request #540 from thomasheritage/entry-time-setter
Browse files Browse the repository at this point in the history
entryHeader time setter more tolerant
  • Loading branch information
5saviahv authored Sep 22, 2024
2 parents 1c7860f + 85c3f67 commit 9a29f09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions headers/entryHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ module.exports = function () {
return Utils.fromDOS2Date(this.timeval);
},
set time(val) {
val = new Date(val);
this.timeval = Utils.fromDate2DOS(val);
},

Expand Down

0 comments on commit 9a29f09

Please sign in to comment.