Re: [Mimedefang] typo in hour_str()?

2017-12-26 Thread Dianne Skoll
On Tue, 26 Dec 2017 00:59:23 +0100
Franz Schwartau  wrote:

> After upgrading to 2.83 of mimedefang I'm wondering if "$min+1" should
> read "$mon+1" in hour_str():

It should; I have it fixed in git, but haven't made a new release of
MIMEDefang with the fix in place yet.

Regards,

Dianne.
___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] typo in hour_str()?

2017-12-26 Thread Franz Schwartau
Merry Christmas!

After upgrading to 2.83 of mimedefang I'm wondering if "$min+1" should
read "$mon+1" in hour_str():

sub hour_str {
my($sec, $min, $hour, $mday, $mon, $year, $junk);
($sec, $min, $hour, $mday, $mon, $year, $junk) = localtime(time());
return sprintf('%04d-%02d-%02d-%02d', $year+1900, $min+1, $mday, $hour);
}

This would make more sense to me... :-)

Best regards
Franz

___
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang