Hi,

You are still not making any sense.....I dont understand PHP/programming.

regards

Steven Jones

Technical Specialist - Linux RHCE

Victoria University, Wellington, NZ

0064 4 463 6272

________________________________________
From: [email protected] [[email protected]] on behalf of 
dan (ddp) [[email protected]]
Sent: Friday, 18 November 2011 10:04 a.m.
To: [email protected]
Subject: Re: [ossec-list] php / timezone error

On Thu, Nov 17, 2011 at 4:01 PM, Steven Jones <[email protected]> wrote:
> uh......your reply  makes no sense...it looks like a php coding error on line 
> 48 of Alerts.php
>

That's basically what the error says. It tells you how to fix it too.
Use the "date.timezone setting or the date_default_timezone_set()
function," probably to set the timezone.

>
> regards
>
> Steven Jones
>
> Technical Specialist - Linux RHCE
>
> Victoria University, Wellington, NZ
>
> 0064 4 463 6272
>
> ________________________________________
> From: [email protected] [[email protected]] on behalf of 
> dan (ddp) [[email protected]]
> Sent: Friday, 18 November 2011 9:49 a.m.
> To: [email protected]
> Subject: Re: [ossec-list] php / timezone error
>
> It gives you the solution in the error:
> "You are *required* to use the date.timezone setting or the
> date_default_timezone_set() function."
>
> On Wed, Nov 16, 2011 at 9:41 PM, Steven Jones <[email protected]> wrote:
>> How to fix this alarm?
>>
>> [Thu Nov 17 15:35:53 2011] [error] [client 127.0.0.1] PHP Warning:  date(): 
>> It is not safe to rely on the system's timezon
>> e settings. You are *required* to use the date.timezone setting or the 
>> date_default_timezone_set() function. In case you u
>> sed any of those methods and you are still getting this warning, you most 
>> likely misspelled the timezone identifier. We se
>> lected 'Pacific/Auckland' for 'NZDT/13.0/DST' instead in 
>> /var/www/html/ossec-wui/lib/Ossec/Alert.php on line 48
>>
>> regards
>

Reply via email to