Subject: | examples/populate_mailbox.pl should use 4-digit dates |
man Time::Local says
Show quoted text
> Whenever possible, use an absolute four digit year instead.
With a detailed explanation about ambiguity of 2-digit dates above that.
Please apply this fix:
+++ Mail-IMAPClient-3.37/examples/populate_mailbox.pl
@@ -107 +107 @@ sub seconds {
- return timegm(0,$min,$hr,$dom,$moy-1,($yy>99?$yy-1900:$yy)) ;
+ return timegm(0,$min,$hr,$dom,$moy-1,($yy>999?$yy:$yy+1900)) ;
99?$yy:$yy+1900)) ;