From 507bc9afbf8a7efb5138179eed38bdfee68ea5d1 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sat, 20 Jun 2015 17:26:49 +0200 Subject: [PATCH] `Number.isNaN()` is part of ES6 and not yet fully supported --- wcfsetup/install/files/js/WoltLab/WCF/Date/Picker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/WoltLab/WCF/Date/Picker.js b/wcfsetup/install/files/js/WoltLab/WCF/Date/Picker.js index 1f2d8705eb..96e57309d4 100644 --- a/wcfsetup/install/files/js/WoltLab/WCF/Date/Picker.js +++ b/wcfsetup/install/files/js/WoltLab/WCF/Date/Picker.js @@ -200,7 +200,7 @@ define(['DateUtil', 'Language', 'ObjectMap', 'DOM/ChangeListener', 'UI/Alignment if (value) { date = new Date(+value); - if (Number.isNaN(date.valueOf())) { + if (date.toString() === 'Invalid Date') { date = new Date(); } } -- 2.20.1