瀏覽代碼

fixed bug in figuring out which date format to show.

Luke Ehresman 25 年之前
父節點
當前提交
20809ecfc8
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/date.php

+ 1 - 1
functions/date.php

@@ -74,7 +74,7 @@
       $dateZ = date("Z", $now);
       if ($invert_time)
           $dateZ = - $dateZ;
-      $midnight = $now - ($now % 86400) - 86400 - $dateZ;
+      $midnight = $now - ($now % 86400) - $dateZ;
 
       if ($midnight < $stamp) {
          // Today