diff options
author | Justin Wood <Callek@gmail.com> | 2010-03-04 14:28:32 -0500 |
---|---|---|
committer | Justin Wood <Callek@gmail.com> | 2010-03-04 14:28:32 -0500 |
commit | 9a9405da0b6b5baf8157206d34ba3895fb33b788 (patch) | |
tree | 32d3d3ce23bb242c7d68515bfd92e4a8eb140ebd /Bugzilla/WebService/Server.pm | |
parent | b30aeba04609049378374441209f7e808931e198 (diff) | |
download | bugs-9a9405da0b6b5baf8157206d34ba3895fb33b788.tar bugs-9a9405da0b6b5baf8157206d34ba3895fb33b788.tar.gz bugs-9a9405da0b6b5baf8157206d34ba3895fb33b788.tar.bz2 bugs-9a9405da0b6b5baf8157206d34ba3895fb33b788.tar.xz bugs-9a9405da0b6b5baf8157206d34ba3895fb33b788.zip |
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.pm | 9 |
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; |