[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: setup config.php,1.72.2.2,1.72.2.3
From: |
Mark A Peters <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: setup config.php,1.72.2.2,1.72.2.3 |
Date: |
Mon, 12 Aug 2002 06:28:22 -0400 |
Update of /cvsroot/phpgroupware/setup
In directory subversions:/tmp/cvs-serv7677/setup
Modified Files:
Tag: Version-0_9_14-branch
config.php
Log Message:
New way of handling the DateTime problem. This is now part of setup/config.
Index: config.php
===================================================================
RCS file: /cvsroot/phpgroupware/setup/config.php,v
retrieving revision 1.72.2.2
retrieving revision 1.72.2.3
diff -C2 -r1.72.2.2 -r1.72.2.3
*** config.php 7 Apr 2002 20:29:19 -0000 1.72.2.2
--- config.php 12 Aug 2002 10:28:19 -0000 1.72.2.3
***************
*** 100,103 ****
--- 100,120 ----
$newsettings = @$GLOBALS['HTTP_POST_VARS']['newsettings'];
+
+ $datetime = CreateObject('phpgwapi.datetime');
+ switch (intval($newsettings['daytime_port']))
+ {
+ case 13:
+ $newsettings['tz_offset'] =
$datetime->getntpoffset();
+ break;
+ case 80:
+ $newsettings['tz_offset'] =
$datetime->gethttpoffset();
+ break;
+ default:
+ $newsettings['tz_offset'] =
$datetime->getbestguess();
+ break;
+ }
+ unset($datetime);
+
+ print_debug('TZ_OFFSET',$newsettings['tz_offset']);
while (list($setting,$value) = @each($newsettings))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: setup config.php,1.72.2.2,1.72.2.3,
Mark A Peters <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: headlines deleteheadline.php,1.10,1.11 editheadline.php,1.14,1.15 index.php,1.29,1.30 newheadline.php,1.14,1.15 preferences.php,1.22,1.23 preferences_other.php,1.2,1.3 viewheadline.php,1.10,1.11
- Next by Date:
[Phpgroupware-cvs] CVS: phpgwapi/templates/default config.tpl,1.2,1.2.2.1
- Previous by thread:
[Phpgroupware-cvs] CVS: headlines deleteheadline.php,1.10,1.11 editheadline.php,1.14,1.15 index.php,1.29,1.30 newheadline.php,1.14,1.15 preferences.php,1.22,1.23 preferences_other.php,1.2,1.3 viewheadline.php,1.10,1.11
- Next by thread:
[Phpgroupware-cvs] CVS: phpgwapi/templates/default config.tpl,1.2,1.2.2.1
- Index(es):