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

Re: Blocking bug W3C::Util::W3CDebugCGI

From: Matthew Wilson <matthew@mjwilson.demon.co.uk>
Date: Thu, 04 Apr 2002 18:36:46 +0100
Message-Id: <>
To: "Enrico Spinielli" <Enrico.Spinielli@marconi.com>, eric@w3.org
Cc: www-annotation@w3.org
At 15:10 04/04/02 +0200, Enrico Spinielli wrote:
>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.

Better still to use Perl built-in's instead of relying on 
platform-dependent commands.

Some suggestions at
based on a CVS pull at the time.

Matthew Wilson
Received on Thursday, 4 April 2002 12:37:01 UTC

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