Show
Ignore:
Timestamp:
08/03/07 13:59:09 (5 years ago)
Author:
drazzib
Message:

2007-08-03 Damien Raude-Morvan <drazzib@…>

  • init_php.php : Fix #363 by applying patch from Leandro to correctly set timezone info in Wifidog if set in configuration (allow Wifidog to work not only in Canada :)
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog-auth/wifidog/include/init_php.php

    r1186 r1274  
    131131    // Set timezone if PHP version >= 5.1.0 
    132132    if (str_replace(".", "", phpversion()) >= 510) { 
    133         date_default_timezone_set(defined(DATE_TIMEZONE) ? DATE_TIMEZONE : "Canada/Eastern"); 
     133        date_default_timezone_set(defined('DATE_TIMEZONE') ? DATE_TIMEZONE : "Canada/Eastern"); 
    134134    } 
    135135}