diff --git a/api/js/etemplate/et2_widget_date.js b/api/js/etemplate/et2_widget_date.js index 0a0ed0b7b6..56c92262a8 100644 --- a/api/js/etemplate/et2_widget_date.js +++ b/api/js/etemplate/et2_widget_date.js @@ -794,7 +794,7 @@ var et2_date_duration = (function(){ "use strict"; return et2_date.extend( } else { - this.format.text(this.time_formats[display.unit]); + this.format.text(display.unit ? this.time_formats[display.unit] : ''); } } },