We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb006c2 commit f47df49Copy full SHA for f47df49
lib/encode.js
@@ -5,7 +5,7 @@ var values = require('./values')
5
6
var appleEpoch = Date.UTC(1904, 0, 1)
7
var appleDate = function (value) {
8
- if (util.isDate(value) === false) {
+ if (!(value instanceof Date)) {
9
// value = new Date(value);
10
throw new TypeError('Not a date: ' + value)
11
}
0 commit comments