Skip Menu |
 

This queue is for tickets about the Mail-Sendmail CPAN distribution.

Report information
The Basics
Id: 131028
Status: new
Priority: 0/
Queue: Mail-Sendmail

People
Owner: Nobody in particular
Requestors: jb [...] softsystem.pl
Cc:
AdminCc:

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



Subject: Mail::Sendmail::time_to_date
Date: Tue, 19 Nov 2019 11:35:49 +0000
To: "bug-Mail-Sendmail [...] rt.cpan.org" <bug-Mail-Sendmail [...] rt.cpan.org>
From: Jerzy Baran <jb [...] softsystem.pl>
Download (untitled) / with headers
text/plain 566b
Mail::Sendmail::time_to_date returns invalid value (current time instead of localtime(0)) when called with argument 0, see below: DB<19> p scalar(localtime(0)) Wed Dec 31 19:00:00 1969 DB<20> p Mail::Sendmail::time_to_date(0) Tue, 19 Nov 2019 06:20 -0500 DB<21> Sendmail.pm VERSION 0.80: 137: sub time_to_date { 138: # convert a time() value to a date-time string according to RFC 822 139: 140: my $time = $_[0] || time(); # default to now if no argument <--- time now is also with argument 0, was it intentional ? Regards, Jerzy Baran


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.