Skip to content

Commit 85c3f67

Browse files
entryHeader time setter more tolerant
* 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
1 parent 1c7860f commit 85c3f67

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

headers/entryHeader.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ module.exports = function () {
9898
return Utils.fromDOS2Date(this.timeval);
9999
},
100100
set time(val) {
101+
val = new Date(val);
101102
this.timeval = Utils.fromDate2DOS(val);
102103
},
103104

0 commit comments

Comments
 (0)