Changeset 659 for trunk/lib/DB.inc.php


Ignore:
Timestamp:
Jan 26, 2019 10:49:49 PM (5 years ago)
Author:
anonymous
Message:

Fix regression 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/DB.inc.php

    r658 r659  
    204204        $tz = date_default_timezone_get();
    205205        // Check that PHP is configured with a valid timezone name, e.g., "UTC" or "America/Mexico_City" or "-6:00".
    206         if ($app->getParam('timezone') && $app->getParam('timezone') == $tz && preg_match('!^([A-Z_/-]{3,}|[-+\d:]+)$!/i', $tz)) {
     206        if ($app->getParam('timezone') && $app->getParam('timezone') == $tz && preg_match('!^([A-Z_/-]{3,}|[-+\d:]+)$!i', $tz)) {
    207207            // https://dev.mysql.com/doc/refman/5.5/en/time-zone-support.html
    208208            $this->query(sprintf("SET SESSION time_zone = '%s'", $tz));
Note: See TracChangeset for help on using the changeset viewer.