Ticket #363 (closed Bug report: fixed)

Opened 2 years ago

Last modified 2 years ago

Timezone problem fix

Reported by: anonymous Assigned to: drazzib
Priority: high Milestone: WifiDog Auth Server 1.0
Component: Auth server, Statistics and reporting Keywords:
Cc:

Description

I found the glitch in my timezone problems. It is in the wrong usage of the defined function: the name of the constant has to be put in

--- init_php.php.orig 2007-07-31 18:14:02.000000000 +0200 +++ init_php.php 2007-07-31 18:14:11.000000000 +0200 @@ -130,7 +130,7 @@

{

// Set timezone if PHP version >= 5.1.0 if (str_replace(".", "", phpversion()) >= 510) {

- date_default_timezone_set(defined(DATE_TIMEZONE) ? DATE_TIMEZONE : "Canada/Eastern"); + date_default_timezone_set(defined('DATE_TIMEZONE') ? DATE_TIMEZONE : "Canada/Eastern");

}

}

Leandro

Attachments

init_php.php.diff (446 bytes) - added by anonymous on 07/31/07 12:18:21.

Change History

07/31/07 12:18:21 changed by anonymous

  • attachment init_php.php.diff added.

08/03/07 13:50:15 changed by drazzib

  • status changed from new to assigned.
  • owner set to drazzib.
  • milestone changed from Not yet assigned to a Milestone to WifiDog Auth Server 1.0.

08/03/07 14:00:25 changed by drazzib

  • status changed from assigned to closed.
  • resolution set to fixed.

Patch applied in #1274.

Thanks for your bug report !


Add/Change #363 (Timezone problem fix)




Action