1
0
mirror of https://tt-rss.org/git/tt-rss.git synced 2024-06-23 11:46:37 +02:00

smart_date_time() display fix

This commit is contained in:
Andrew Dolgov 2005-12-02 17:33:41 +01:00
parent f1f2db647f
commit f26450f18c

View File

@ -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");