diff --git a/js/pickmeup.js b/js/pickmeup.js index 79d4675..c155e3a 100644 --- a/js/pickmeup.js +++ b/js/pickmeup.js @@ -547,7 +547,7 @@ separator = options.separator, locale = options.locales[options.locale], i; - if (date instanceof Date || date instanceof Number) { + if (date instanceof Date || typeof date === 'number') { return reset_time(new Date(date)); } else if (!date) { return reset_time(new Date);