diff options
author | Dylan William Hardison <dylan@hardison.net> | 2016-11-20 00:12:39 +0100 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-01-04 23:30:47 +0100 |
commit | 419f3ae9fd57fc4e03146a830f7ed780ace83937 (patch) | |
tree | f368b61dab21eb036e4b91e1ec947a4b9eeabae9 /Bugzilla/Util.pm | |
parent | 840bbad83e4672fc84083437e384f0d332020f53 (diff) | |
download | bugzilla-419f3ae9fd57fc4e03146a830f7ed780ace83937.tar.gz bugzilla-419f3ae9fd57fc4e03146a830f7ed780ace83937.tar.xz |
Bug 1307478 - Elasticsearch Indexer / Bulk Indexer
Diffstat (limited to 'Bugzilla/Util.pm')
-rw-r--r-- | Bugzilla/Util.pm | 3 |
1 files changed, 3 insertions, 0 deletions
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; |