diff --git a/admin/schema.php b/admin/schema.php index 61d6058d62..02f33fc480 100644 --- a/admin/schema.php +++ b/admin/schema.php @@ -50,11 +50,9 @@ function db_null_date() { function installer_db_now() { global $g_db; - $t_timezone = @date_default_timezone_get(); - date_default_timezone_set( 'UTC' ); - $t_time = $g_db->BindTimeStamp( time() ); - @date_default_timezone_set( $t_timezone ); - return $t_time; + # Timezone must not be set to UTC prior to calling BindTimestamp(), as + # ADOdb assumes a local timestamp and does the UTC conversion itself. + return $g_db->BindTimeStamp( time() ); } # Special handling for Oracle (oci8):