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

Owner: Nobody in particular
Requestors: jb [...]

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 [...]" <bug-Mail-Sendmail [...]>
From: Jerzy Baran <jb [...]>
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> 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 infrastructure.

Please report any issues with to