phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] phpgwapi/inc class.common.inc.php


From: Sigurd Nes
Subject: [Phpgroupware-cvs] phpgwapi/inc class.common.inc.php
Date: Tue, 27 Jun 2006 13:03:03 +0000

CVSROOT:        /sources/phpgwapi
Module name:    phpgwapi
Changes by:     Sigurd Nes <sigurdne>   06/06/27 13:03:03

Modified files:
        inc            : class.common.inc.php 

Log message:
        linux can handle negative numbers (pre 1970) for date()

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/inc/class.common.inc.php?cvsroot=phpgwapi&r1=1.233&r2=1.234

Patches:
Index: class.common.inc.php
===================================================================
RCS file: /sources/phpgwapi/phpgwapi/inc/class.common.inc.php,v
retrieving revision 1.233
retrieving revision 1.234
diff -u -b -r1.233 -r1.234
--- class.common.inc.php        27 Mar 2006 13:38:10 -0000      1.233
+++ class.common.inc.php        27 Jun 2006 13:03:03 -0000      1.234
@@ -8,7 +8,7 @@
        * @license http://www.gnu.org/licenses/lgpl.html GNU Lesser General 
Public License
        * @package phpgwapi
        * @subpackage utilities
-       * @version $Id: class.common.inc.php,v 1.233 2006/03/27 13:38:10 
skwashd Exp $
+       * @version $Id: class.common.inc.php,v 1.234 2006/06/27 13:03:03 
sigurdne Exp $
        */
 
        $d1 = strtolower(@substr(PHPGW_API_INC,0,3));
@@ -1407,7 +1407,7 @@
                                $GLOBALS['phpgw']->datetime = 
createobject('phpgwapi.datetime');
                        }
                        
-                       if (!$t || intval($t) <= 0)
+                       if (!$t || (substr(php_uname(), 0, 7) == "Windows" && 
intval($t) <= 0))
                        {
                                $t = $GLOBALS['phpgw']->datetime->gmtnow;
                        }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]