From 419f3ae9fd57fc4e03146a830f7ed780ace83937 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Sat, 19 Nov 2016 18:12:39 -0500 Subject: Bug 1307478 - Elasticsearch Indexer / Bulk Indexer --- Bugzilla/Util.pm | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Bugzilla/Util.pm') diff --git a/Bugzilla/Util.pm b/Bugzilla/Util.pm index 7937d6b80..fd0f8b92e 100644 --- a/Bugzilla/Util.pm +++ b/Bugzilla/Util.pm @@ -523,6 +523,9 @@ sub datetime_from { my ($date, $timezone) = @_; # In the database, this is the "0" date. + use Carp qw(cluck); + cluck("undefined date") unless defined $date; + return undef unless defined $date; return undef if $date =~ /^0000/; my @time; -- cgit v1.2.3-24-g4f1b