summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/WebService.pm')
-rwxr-xr-xBugzilla/WebService.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla/WebService.pm b/Bugzilla/WebService.pm
index 94dbb6217..7812a237b 100755
--- a/Bugzilla/WebService.pm
+++ b/Bugzilla/WebService.pm
@@ -20,6 +20,7 @@ package Bugzilla::WebService;
use strict;
use Bugzilla::WebService::Constants;
use Date::Parse;
+use XMLRPC::Lite;
sub fail_unimplemented {
my $this = shift;
@@ -62,6 +63,14 @@ sub login_exempt {
return $class->LOGIN_EXEMPT->{$method};
}
+sub type {
+ my ($self, $type, $value) = @_;
+ if ($type eq 'dateTime') {
+ $value = $self->datetime_format($value);
+ }
+ return XMLRPC::Data->type($type)->value($value);
+}
+
1;
package Bugzilla::WebService::XMLRPC::Transport::HTTP::CGI;