summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server.pm
diff options
context:
space:
mode:
authorJustin Wood <Callek@gmail.com>2010-03-04 20:28:32 +0100
committerJustin Wood <Callek@gmail.com>2010-03-04 20:28:32 +0100
commit9a9405da0b6b5baf8157206d34ba3895fb33b788 (patch)
tree32d3d3ce23bb242c7d68515bfd92e4a8eb140ebd /Bugzilla/WebService/Server.pm
parentb30aeba04609049378374441209f7e808931e198 (diff)
downloadbugzilla-9a9405da0b6b5baf8157206d34ba3895fb33b788.tar.gz
bugzilla-9a9405da0b6b5baf8157206d34ba3895fb33b788.tar.xz
Bug 545299, XML-RPC WebService should take and return dates and times in UTC. Code part, r+=mkanat
Diffstat (limited to 'Bugzilla/WebService/Server.pm')
-rw-r--r--Bugzilla/WebService/Server.pm9
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server.pm b/Bugzilla/WebService/Server.pm
index 9571e8030..21f0f787c 100644
--- a/Bugzilla/WebService/Server.pm
+++ b/Bugzilla/WebService/Server.pm
@@ -19,6 +19,7 @@ package Bugzilla::WebService::Server;
use strict;
use Bugzilla::Error;
+use Bugzilla::Util qw(datetime_from);
sub handle_login {
my ($self, $class, $method, $full_method) = @_;
@@ -29,4 +30,12 @@ sub handle_login {
Bugzilla->login();
}
+sub datetime_format_inbound {
+ my ($self, $time) = @_;
+
+ my $converted = datetime_from($time, Bugzilla->local_timezone);
+ $time = $converted->ymd() . ' ' . $converted->hms();
+ return $time
+}
+
1;