Skip Menu |
 

This queue is for tickets about the Sys-Syslog CPAN distribution.

Report information
The Basics
Id: 64287
Status: resolved
Priority: 0/
Queue: Sys-Syslog

People
Owner: Nobody in particular
Requestors: Dave.Stafford [...] globis.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.28



Subject: strftime format does not work on windows
Date: Tue, 28 Dec 2010 15:15:41 +0100
To: bug-Sys-Syslog [...] rt.cpan.org
From: Dave Stafford <Dave.Stafford [...] globis.net>
Download (untitled) / with headers
text/plain 276b
In line 385 strftime is called to format the log message: my $timestamp = strftime "%b %e %T", localtime; However, %e and %T are not supported in POSIX for windows. The following is equivalent, and is supported my $timestamp = strftime "%b %d %H:%M:%S", localtime; Dave
Subject: Re: [rt.cpan.org #64287] strftime format does not work on windows
Date: Sun, 17 Apr 2011 09:50:54 +0200
To: bug-Sys-Syslog [...] rt.cpan.org
From: Sébastien Aperghis-Tramoni <saper [...] cpan.org>
Download (untitled) / with headers
text/plain 516b
Dave Stafford wrote via RT: Show quoted text
> In line 385 strftime is called to format the log message: > > my $timestamp = strftime "%b %e %T", localtime; > > However, %e and %T are not supported in POSIX for windows. > The following is equivalent, and is supported > > my $timestamp = strftime "%b %d %H:%M:%S", localtime;
Damn Windows, always breaking POSIX.. Thanks, applied. Included with release 0.28, sponsored by the Perl QA Hackathon 2011 in Amsterdam. -- Sébastien Aperghis-Tramoni Close the world, txEn eht nepO.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.