Browse Source

fixed bug in figuring out which date format to show.

Luke Ehresman 25 năm trước cách đây
mục cha
commit
20809ecfc8
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      functions/date.php

+ 1 - 1
functions/date.php

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