summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-12-02 17:33:41 +0100
committerAndrew Dolgov <[email protected]>2005-12-02 17:33:41 +0100
commitf26450f18c2f1656f00e4261a60f09285b909277 (patch)
tree8d271b515b3ebc75210a6ed5843f1d6df6af0670 /functions.php
parentf1f2db647fb0f853a693a895d65c77292c86ef76 (diff)
smart_date_time() display fix
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/functions.php b/functions.php
index d36ee849e..6b6060573 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");