Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.

Commit

Permalink
Merge pull request #214 from nikedev/patch-1
Browse files Browse the repository at this point in the history
Fix validation
  • Loading branch information
nazar-pc authored Jan 19, 2019
2 parents f886f03 + db9254f commit 7b5b379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/pickmeup.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7b5b379

Please sign in to comment.