Index: branches/5.2.x/core/kernel/globals.php =================================================================== diff -u -N -r15314 -r15512 --- branches/5.2.x/core/kernel/globals.php (.../globals.php) (revision 15314) +++ branches/5.2.x/core/kernel/globals.php (.../globals.php) (revision 15512) @@ -1,6 +1,6 @@ setTimezone(new DateTimeZone(getenv('TZ'))); + } + else { + $date = new DateTime(); + $date->setTimestamp($timestamp); + } + + return $date; + } } /** @@ -710,7 +731,7 @@ * @param int $scanner_mode * @return Array */ - function parse_ini_string($ini, $process_sections = false, $scanner_mode = null) + function parse_ini_string($ini, $process_sections = false, $scanner_mode = NULL) { # Generate a temporary file. $tempname = tempnam('/tmp', 'ini');