Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 May 2010 11:18:32 +0800
From:      Fbsd1 <fbsd1@a1poweruser.com>
To:        Nerius Landys <nlandys@gmail.com>
Cc:        Amitabh Kant <amitabhkant@gmail.com>, "questions@freebsd.org" <questions@freebsd.org>
Subject:   Re: class.phpmailer.php Warning: date() [function.date]:
Message-ID:  <4BF89E88.70705@a1poweruser.com>
In-Reply-To: <AANLkTinYKcrm8pb__jQFcy9R_jKhkBHQDEdR5-iHXwJS@mail.gmail.com>
References:  <4BF87A70.1040705@a1poweruser.com>	<AANLkTimcIHOw0t2Bxd7gIs6Nn3uxRdVjuCEWqALBKTDa@mail.gmail.com> <AANLkTinYKcrm8pb__jQFcy9R_jKhkBHQDEdR5-iHXwJS@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Nerius Landys wrote:
>>> Running Apache-1.3.41_1 PHP5-5.2.12 I did not get this message, which I now
>>> get running Apache/2.2.15 (FreeBSD) PHP/5.3.2
>>> Is their way to stop this?
>>>
>>> Warning: date() [function.date]: It is not safe to rely on the system's
>>> timezone settings. You are *required* to use the date.timezone setting or
>>> the date_default_timezone_set() function. In case you used any of those
>>> methods and you are still getting this warning, you most likely misspelled
>>> the timezone identifier. We selected 'Asia/Manila' for 'PHT/8.0/no DST'
>>> instead in /usr/local/website/mlsax/class.phpmailer.php on line 1406
>>>
>>>
>> Somewhere on top of your script, set the time zone:
>>
>> date_default_timezone_set('Asia/Manila');
> 
> In my opinion a better idea is to address this issue directly in your
> php.ini file, which will very likely be /usr/local/etc/php.ini .  My
> php.ini file has these lines:
> 
> ;;;;;;;;;;;;;;;;;;;
> ; Module Settings ;
> ;;;;;;;;;;;;;;;;;;;
> 
> [Date]
> ; Defines the default timezone used by the date functions
> ; http://php.net/date.timezone
> date.timezone = "America/Los_Angeles"
> 
> 


Created php.ini with this and things work again.
  [Date]
  ; Defines the default timezone used by the date functions
  date.timezone = Asia/Manila

Thanks




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BF89E88.70705>