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

Commit

Permalink
Fix validation
Browse files Browse the repository at this point in the history
  • Loading branch information
evdevel authored Jan 19, 2019
1 parent f886f03 commit db9254f
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 db9254f

Please sign in to comment.