X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=cgi%2Fsoap.cgi;h=261042b0a88c5731ab3c35d9d93df704d550bca0;hb=1b1562614656acf70e9b69c8eb736673f370c816;hp=53f7368536f4327b4a71b60acd59a9ce811250d8;hpb=8b40c099ffd3f1a46ba40eed9d572dc8b4211f0e;p=debbugs.git diff --git a/cgi/soap.cgi b/cgi/soap.cgi index 53f7368..261042b 100755 --- a/cgi/soap.cgi +++ b/cgi/soap.cgi @@ -28,7 +28,12 @@ my $soap = Debbugs::SOAP::Server # kill off all of the date/time related bits in the serializer. my $typelookup = $soap->serializer()->{_typelookup}; for my $key (keys %{$typelookup}) { - delete $typelookup->{$key} if defined $key and $key =~ /Month|Day|Year|date|time|duration/i; + if (defined $key and + $key =~ /Month|Day|Year|date|time|duration/i + ) { + # set the sub to always return 0 + $typelookup->{$key}[1] = sub { 0 }; + } } our $warnings = '';