Don't format empty time
This commit is contained in:
1 parent
720f7a762e
commit
072e8d57fa
1 file changed
+3
@@ -143,6 +143,9 @@
|
||||
};
|
||||
|
||||
Sao.common.format_time = function(format, date) {
|
||||
if (!date) {
|
||||
return '';
|
||||
}
|
||||
return date.format(Sao.common.moment_format(format));
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user