|
Posted by Janwillem Borleffs on 12/12/05 00:19
Chameleon wrote:
> What is the meaning of this message?
> How can I silence it without commenting the commented line?
>
Your server could be located in America, while your application is focussed
on European users, which can produce errors with date/time related
operations.
The fix is to follow the instruction and to apply the
date_default_timezone_set() function:
date_default_timezone_set('UTC');
$a = mktime(14, 0, 0, 12, 20, 2005);
echo date('d/m/Y', $a);
Instead of UTC, you can use any of the ones listed on the following page:
http://www.php.net/manual/en/timezones.php
JW
Navigation:
[Reply to this message]
|