Ticket #363 (closed Bug report: fixed)

Opened 12 years ago

Last modified 12 years ago

Timezone problem fix

Reported by: anonymous Owned by: drazzib
Priority: high Milestone: WifiDog Auth Server 1.0
Component: Auth server, Statistics and reporting Version:
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 Download (446 bytes) - added by anonymous 12 years ago.

Change History

Changed 12 years ago by anonymous

Changed 12 years ago by drazzib

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

Changed 12 years ago by drazzib

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

Patch applied in #1274.

Thanks for your bug report !

Note: See TracTickets for help on using tickets.