瀏覽代碼

fixed some bugs in date sorting.. It is now timezone independent

Luke Ehresman 25 年之前
父節點
當前提交
b1d39904be
共有 3 個文件被更改,包括 3 次插入33 次删除
  1. 1 0
      ChangeLog
  2. 0 31
      config/july4_theme.php
  3. 2 2
      functions/date.php

+ 1 - 0
ChangeLog

@@ -1,5 +1,6 @@
 Version 0.5pre1 -- DEVELOPMENT
 Version 0.5pre1 -- DEVELOPMENT
 ------------------------------
 ------------------------------
+- Searching folders functionality added 
 - Date display now is similar to Netscape Messenger
 - Date display now is similar to Netscape Messenger
 - Many bugs have been reported to the list, and been squashed
 - Many bugs have been reported to the list, and been squashed
 - Help system developed 
 - Help system developed 

+ 0 - 31
config/july4_theme.php

@@ -1,31 +0,0 @@
-<?php
-   /** Author:       Luke Ehresman
-       Date:         January 2, 2000
-       Theme Name:   "July Fourth Theme"
-
-       This is the default theme that comes standard with SquirrelMail.
-       Most of the colors were taken from mail.yahoo.com's theme on their
-       site.
-
-       To create a new theme, just copy this file, and edit the colors.
-       Be sure to rename the file and keep the original, just in case.
-
-       NOTE:
-       Please email any themes you create to luke@usa.om.org for inclusion
-       in further releases of SquirrelMail and for download from the web
-       page.
-    **/
-
-    $color[0]   = "#6495ED"; // (cornflower blue)TitleBar
-    $color[1]   = "#800000"; // (red)
-    $color[2]   = "#8B0000"; // (dark red)       Warning/Error Messages
-    $color[3]   = "#FF0000"; // (bright red)     Left Bar Background
-    $color[4]   = "#FFFFFF"; // (white)          Normal Background
-    $color[5]   = "#FFFFCC"; // (light yellow)   Table Headers
-    $color[6]   = "#0000FF"; // (blue)           Text on left bar
-    $color[7]   = "#1E90FF"; // (blue)           Links
-    $color[8]   = "#000000"; // (black)          Normal text
-    $color[9]   = "#00008B"; // (blue)       	 
-    $color[10]  = "#0000FF"; // (blue ??)      
-    $color[11]  = "#FFFF00"; // (yellow)         Special Folders color
-?>

+ 2 - 2
functions/date.php

@@ -200,12 +200,12 @@
 
 
    function getDateString($stamp) {
    function getDateString($stamp) {
       $now = time();
       $now = time();
-      $midnight = $now - ($now % 86400) + 14400;
+      $midnight = $now - ($now % 86400) - date("Z", $now);
 
 
       if ($midnight < $stamp) {
       if ($midnight < $stamp) {
          // Today
          // Today
          return date("g:i a", $stamp);
          return date("g:i a", $stamp);
-      } else if ($midnight - 604800 < $stamp) {
+      } else if ($midnight - (60 * 60 * 24 * 6) < $stamp) {
          // This week
          // This week
          return date("D, g:i a", $stamp);
          return date("D, g:i a", $stamp);
       } else {
       } else {