summaryrefslogtreecommitdiff
path: root/httemplate/elements/tr-fixed-date.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-09-08 11:25:59 -0700
committerMark Wells <mark@freeside.biz>2016-09-08 11:25:59 -0700
commit87194c546606205e78e36f99ec1f2ae6f0a9cafc (patch)
tree08fe22e3bf25a0ffbde7257675c617db9a55e42d /httemplate/elements/tr-fixed-date.html
parent4b75f33fd6c2d0fecf8714f588f2d6d200aa4d47 (diff)
add UI to manage saved searches, #72101
Diffstat (limited to 'httemplate/elements/tr-fixed-date.html')
-rw-r--r--httemplate/elements/tr-fixed-date.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/elements/tr-fixed-date.html b/httemplate/elements/tr-fixed-date.html
index ef599796d..731a3caa7 100644
--- a/httemplate/elements/tr-fixed-date.html
+++ b/httemplate/elements/tr-fixed-date.html
@@ -14,6 +14,6 @@ my $value = $opt{'curr_value'} || $opt{'value'};
my $conf = new FS::Conf;
my $date_format = $opt{'format'} || $conf->config('date_format') || '%m/%d/%Y';
-$opt{'formatted_value'} = time2str($date_format, $value);
+$opt{'formatted_value'} = $value > 0 ? time2str($date_format, $value) : '';
</%init>