Skip Menu |

This queue is for tickets about the DateManip CPAN distribution.

Report information
The Basics
Id: 23515
Status: resolved
Priority: 0/
Queue: DateManip

People
Owner: Nobody in particular
Requestors: rkitover [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 5.44
Fixed in: (no value)



Subject: Date_TimeZone broken on Cygwin
Date_TimeZone cannot parse the Cygwin $ENV{TZ} value, which looks like: "PST8PDT7,M4.1.0/2,M10.5.0/2" It does not use the "date" command which is actually available on Cygwin because Cygwin perl has an .exe extension. Patch below: --- Manip.pm.orig 2005-06-02 08:47:42.000000000 -0700 +++ Manip.pm 2006-11-20 16:14:52.708361900 -0800 @@ -3526,7 +3526,7 @@ # `date` program and assume the output is of the format: # Thu Aug 31 14:57:46 EDT 2000 - unless (($^X =~ /perl\.exe$/i) or + unless (($^O ne 'cygwin' && $^X =~ /perl\.exe$/i) or ($OS eq "Windows") or ($OS eq "Netware") or ($OS eq "VMS")) { -- Rafael
The patch has been added.