From 21902950582a343bc8cf8583dd6013394fb28aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 19 Apr 2022 18:06:14 +0200 Subject: [PATCH] Use JavaScript logical NOT when parsing time The jQuery isEmptyObject is not true on empty string. issue11189 review356351002 (grafted from 1a7b8019712f02416507daa25761772eba125490) --HG-- branch : 6.0 --- src/common.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common.js b/src/common.js index effa6d2f3a..c65a4e2334 100644 --- a/src/common.js +++ b/src/common.js @@ -245,7 +245,7 @@ }; Sao.common.parse_time = function(format, value) { - if (jQuery.isEmptyObject(value)) { + if (!value) { return null; } var getNumber = function(pattern) {