Year of the post
authorx2003bruneau <x2003bruneau@9869982d-c50d-0410-be91-f2a2ec7c7c7b>
Sat, 23 Jun 2007 09:40:11 +0000 (09:40 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Fri, 4 Jan 2008 23:35:47 +0000 (00:35 +0100)
 Changelog            |    1 +
 banana/spool.inc.php |    4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

git-svn-id: svn+ssh://murphy/home/svn/banana/trunk@268 9869982d-c50d-0410-be91-f2a2ec7c7c7b

Changelog
banana/spool.inc.php

index b57ade2..5fb7d49 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,5 +1,6 @@
 Sat, 23 Jun 2007                                       Florent Bruneau <florent.bruneau@m4x.org>
 
+       * Add the year of the post in the spool for post older than 90 days
        * Bugfix: To/Newsgroups formatting
 
 Tue, 12 Jun 2007                                       Florent Bruneau <florent.bruneau@m4x.org>
index ca2c426..19cc647 100644 (file)
@@ -405,8 +405,10 @@ class BananaSpool
             $format = _b_('hier')." %H:%M";
         } elseif ($today < 7 + $dday) {
             $format = '%a %H:%M';
-        } else {
+        } elseif ($today < 90 + $dday) {
             $format = '%a %e %b';
+        } else {
+            $format = '%a %e %b %Y';
         }
         return strftime($format, $stamp);
     }