diff options
author | mkanat%bugzilla.org <> | 2009-05-09 19:47:25 +0200 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2009-05-09 19:47:25 +0200 |
commit | 502914d29785bf4a4ba6423385979db986c52980 (patch) | |
tree | 79208f09f5c8c6f231a21ae9ebd9940e6d9cd392 /Bugzilla/WebService/Server/XMLRPC.pm | |
parent | e14f0aa2872a93163e55db038ae4e437ef1f5b9e (diff) | |
download | bugzilla-502914d29785bf4a4ba6423385979db986c52980.tar.gz bugzilla-502914d29785bf4a4ba6423385979db986c52980.tar.xz |
Bug 490673: WebServices's datetime_format method was in the wrong module
Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=wicked, r=ghendricks, a=mkanat
Diffstat (limited to 'Bugzilla/WebService/Server/XMLRPC.pm')
-rw-r--r-- | Bugzilla/WebService/Server/XMLRPC.pm | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/Bugzilla/WebService/Server/XMLRPC.pm b/Bugzilla/WebService/Server/XMLRPC.pm index 5c92532a9..cff429fcb 100644 --- a/Bugzilla/WebService/Server/XMLRPC.pm +++ b/Bugzilla/WebService/Server/XMLRPC.pm @@ -45,18 +45,6 @@ sub make_response { } } -sub datetime_format { - my ($self, $date_string) = @_; - - my $time = str2time($date_string); - my ($sec, $min, $hour, $mday, $mon, $year) = localtime $time; - # This format string was stolen from SOAP::Utils->format_datetime, - # which doesn't work but which has almost the right format string. - my $iso_datetime = sprintf('%d%02d%02dT%02d:%02d:%02d', - $year + 1900, $mon + 1, $mday, $hour, $min, $sec); - return $iso_datetime; -} - sub handle_login { my ($self, $classes, $action, $uri, $method) = @_; my $class = $classes->{$uri}; @@ -220,4 +208,4 @@ to be C<undef>, no matter what it contains. nil is implemented by XMLRPC::Lite, in XMLRPC::Deserializer::decode_value. -=end private
\ No newline at end of file +=end private |