From: Andrew Dolgov Date: Fri, 2 Dec 2005 16:33:41 +0000 (+0100) Subject: smart_date_time() display fix X-Git-Tag: schema_feature_freeze_for_1.1~1 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=f26450f18c2f1656f00e4261a60f09285b909277;p=tt-rss.git smart_date_time() display fix --- diff --git a/functions.php b/functions.php index d36ee849..6b606057 100644 --- a/functions.php +++ b/functions.php @@ -781,7 +781,7 @@ function smart_date_time($timestamp) { if (date("Y.m.d", $timestamp) == date("Y.m.d")) { return date("G:i", $timestamp); - } else if (date("Y.m", $timestamp) == date("Y.m")) { + } else if (date("Y", $timestamp) == date("Y")) { return date("M d, G:i", $timestamp); } else { return date("Y/m/d G:i"); @@ -791,7 +791,7 @@ function smart_date($timestamp) { if (date("Y.m.d", $timestamp) == date("Y.m.d")) { return "Today"; - } else if (date("Y.m", $timestamp) == date("Y.m")) { + } else if (date("Y", $timestamp) == date("Y")) { return date("D m", $timestamp); } else { return date("Y/m/d");