From 072e8d57fac78879dbb3bef05fb35de736c65bb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 13 Mar 2015 13:39:21 +0100 Subject: [PATCH] Don't format empty time --- src/common.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common.js b/src/common.js index 5ed1086f9f..77bdb53078 100644 --- a/src/common.js +++ b/src/common.js @@ -143,6 +143,9 @@ }; Sao.common.format_time = function(format, date) { + if (!date) { + return ''; + } return date.format(Sao.common.moment_format(format)); };