On 18 mar, 13:44, "Álvaro G. Vicario"
<webmasterNOSPAMTHA...@demogracia.comwrote:
Quote:
*** Jorge Reyes escribió/wrote (Tue, 18 Mar 2008 12:14:54 -0700 (PDT)):
>
Quote:
Hi everyone i have this problem, when i use date('Y-m-d H:i:s') its
returning 1 more hour than it is, i mean if now is 2008-03-18
13:16:00:00 my function returns *2008-03-18 13:17:00:00, so the
question is why?. I check this on the php.ini and i don´t found
anything related and of course my server time is ok i check it, thanks
for your help.
>
What's your date.timezone directive like? Do you get any notice if you run
the command this way?:
>
<?php
>
ini_set('display_errors', 1);
error_reporting(E_ALL | E_STRICT);
echo date('Y-m-d H:i:s');
>
?>
>
--
--http://alvaro.es- Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web:
http://bits.demogracia.com
-- Mi web de humor en cubitos:
http://www.demogracia.com
--
the date.timezone directive is commented just as default is, now i put
your lines and nothing happens, its showing the same 1 more hour, i
had to change my sql query because i need the time so now i am using
the sysdate() of the oracle server but i still need to undertstand
what happening. Regards