]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix last clause of smart_date/smart_date_time (closes #41)
authorAndrew Dolgov <fox@bah.spb.su>
Mon, 20 Feb 2006 13:25:44 +0000 (14:25 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Mon, 20 Feb 2006 13:25:44 +0000 (14:25 +0100)
functions.php

index f813b6baab8a8afe568e8e524fd505d55c447241..a4aefff62b08dee43f151f9d1328e1355da91810 100644 (file)
                } else if (date("Y", $timestamp) == date("Y")) {
                        return date("M d, G:i", $timestamp);
                } else {
-                       return date("Y/m/d G:i");
+                       return date("Y/m/d G:i", $timestamp);
                }
        }
 
                } else if (date("Y", $timestamp) == date("Y")) {
                        return date("D m", $timestamp);
                } else {
-                       return date("Y/m/d");
+                       return date("Y/m/d", $timestamp);
                }
        }