Login Retreive lost passwordRegister
Search

Forum Index / General / warnig with class.DateField.php on CentOs

[ This topic is solved ]

  Jonathan Clavijo 20 October 11 / 19:45  
hi!

i dont Know why this warning, i configure the regional time but the error continue.

Warning (2): class.DateField.php at 68 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 'America/Caracas' for 'VET/-4.0/no DST' instead
Warning (2): class.DateField.php at 438 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 'America/Caracas' for 'VET/-4.0/no DST' instead


any idea, how to fix this warning?

thanks.

  Johan Wiegel (Admin) 21 October 11 / 07:45  
Changed at 21 October 11 / 07:45
Use php to set default timezone
<?php
date_default_timezone_set
'America/Caracas' );
?>


http://php.net/manual/en/function.date-default-timezone-set.php

  Top


powered by PHP-GLOBE   © 2004 - 2012 FormHandler. All rights reserved.   -   Open source license