Author: ralfbecker
New Revision: 27164
URL: http://www.egroupware.org/viewvc/egroupware?rev=27164&view=rev
Log:
"Patch from Carsten Wolf:
Timesheet-Einträge mit Uhrzeit 0:00, die in der Winterzeit gemacht wurden,
werden in einem Union-Query, der in der Sommerzeit stattfindet, dem falschen
Tag zugeordnet. Vermutlich stimmt dies nur für den PostgreSQL query und ist
Dir deshalb bisher nicht aufgefallen.
Der Patch:
Ändert den PostgreSQL-spezifischen Teil des queries so um, dass er
Zeitzoneninformationen berücksichtigt."
Modified:
branches/1.6/phpgwapi/inc/class.egw_db.inc.php
Modified: branches/1.6/phpgwapi/inc/class.egw_db.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/branches/1.6/phpgwapi/inc/class.egw_db.inc.php?rev=27164&r1=27163&r2=27164&view=diff
— branches/1.6/phpgwapi/inc/class.egw_db.inc.php (original)
+++ branches/1.6/phpgwapi/inc/class.egw_db.inc.php Sat May 30 09:05:54 2009
@@ -605,7 +605,7 @@
*/
function from_bool($val)
{
-
return $val && $val{0} !== 'f'; // everthing other then 0 or f[alse] is returned as true
-
return $val && $val[0] !== 'f'; // everthing other then 0 or f[alse] is returned as true}
/**
@@ -1245,8 +1245,8 @@
case ‘mysql’:
return “FROM_UNIXTIME($expr)”;
-
case 'pgsql': // we use date(,0) as we store server-time -
return "(timestamp '".date('Y-m-d H:i:s',0)."' + ($expr) * interval '1 sec')";
-
case 'pgsql': -
return "(timestamp with time zone 'epoch' + ($expr) * interval '1 sec')"; case 'mssql': // we use date(,0) as we store server-time return "DATEADD(second,($expr),'".date('Y-m-d H:i:s',0)."')";
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs