Skip to content

Commit

Permalink
entryHeader time setter more tolerant
Browse files Browse the repository at this point in the history
* Allows parameter to the `time` setter to be any parameter accepted by the `Date` constructor
* Re-instates the functionality removed at:
6e717ad#diff-6af03ff88c79ec964bc6482f32561df5347e564bd58f5aa1e1801682d4c49842L33
* Closes #539
  • Loading branch information
thomasheritage authored Sep 13, 2024
1 parent 1c7860f commit 85c3f67
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 85c3f67

Please sign in to comment.