W3C home > Mailing lists > Public > www-annotation@w3.org > January to June 2002

Blocking bug W3C::Util::W3CDebugCGI

From: Enrico Spinielli <Enrico.Spinielli@marconi.com>
Date: Thu, 4 Apr 2002 15:10:19 +0200
To: eric@w3.org
Cc: www-annotation@w3.org
Message-ID: <OF4636BEF4.B58998A2-ONC1256B91.0046DE7F@uk.marconicomms.com>
Hi Eric,
I downloaded annotea server v1.1 and installed it but since the
1st of April the use of

     my $dateStr = `date`;
     if ($dateStr !~ m/^(\w+) (\w+)\s+(\d+) (\d+):(\d+):(\d+) (?:(\w+) )?(\d+)$/) {
          &throw(new W3C::Util::Exception(-message => "bad date \"$dateStr\""));

in W3C::Util::W3CDebugCGI (around line 54) throws an exception on my
machine due
to the fact that we now have Day Saving Time  in place.
The output of date on my machine is for example:
     Thu Apr  4 15:02:17 MET DST 2002
and the RE in the if clause does not expect 'DST'

I modified it as follows (removed timezone being optional in RE):
     my $dateStr = `date '+%a %b %e %T %Y'`
but it may be better to modify the RE.

Hope it helps

Enrico Spinielli
Received on Thursday, 4 April 2002 08:11:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:16:55 UTC