summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/Util.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm
index 35a5c0aea..de67d5a59 100644
--- a/Bugzilla/Util.pm
+++ b/Bugzilla/Util.pm
@@ -438,6 +438,9 @@ sub format_time {
sub datetime_from {
my ($date, $timezone) = @_;
+ # In the database, this is the "0" date.
+ return undef if $date =~ /^0000/;
+
# strptime($date) returns an empty array if $date has an invalid
# date format.
my @time = strptime($date);