aboutsummaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/WebService/Server.pm')
-rw-r--r--Bugzilla/WebService/Server.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server.pm b/Bugzilla/WebService/Server.pm
index 71c790e8e..f4b3600d4 100644
--- a/Bugzilla/WebService/Server.pm
+++ b/Bugzilla/WebService/Server.pm
@@ -43,6 +43,8 @@ sub datetime_format_inbound {
sub datetime_format_outbound {
my ($self, $date) = @_;
+ return undef if (!defined $date or $date eq '');
+
my $time = $date;
if (blessed($date)) {
# We expect this to mean we were sent a datetime object