summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-13 21:54:20 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-13 21:54:20 +0100
commitc93887f249fa25405aad68c56995cdcd2efc1e91 (patch)
tree600cca1f4b7966bfd947f18e1d880aac44f796a8 /Bugzilla/WebService/Server.pm
parent9fe88ea66a28168e940bf02038d4055a5e00a4ee (diff)
downloadbugzilla-c93887f249fa25405aad68c56995cdcd2efc1e91.tar.gz
bugzilla-c93887f249fa25405aad68c56995cdcd2efc1e91.tar.xz
Bug 617477: Fix numerous consistency and behavior issues surroudning Bug.update
and Bugzilla::Bug. See https://bugzilla.mozilla.org/show_bug.cgi?id=617477#c2 for details. r=LpSolit, a=LpSolit
Diffstat (limited to 'Bugzilla/WebService/Server.pm')
-rw-r--r--Bugzilla/WebService/Server.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server.pm b/Bugzilla/WebService/Server.pm
index f4b3600d4..4e0315219 100644
--- a/Bugzilla/WebService/Server.pm
+++ b/Bugzilla/WebService/Server.pm
@@ -36,6 +36,9 @@ sub datetime_format_inbound {
my ($self, $time) = @_;
my $converted = datetime_from($time, Bugzilla->local_timezone);
+ if (!defined $converted) {
+ ThrowUserError('illegal_date', { date => $time });
+ }
$time = $converted->ymd() . ' ' . $converted->hms();
return $time
}