<?=date("d-m-Y H:i:s")?>

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zahidrahim
Forum Newbie
Posts: 4
Joined: Sat Dec 05, 2009 7:17 am

<?=date("d-m-Y H:i:s")?>

Post by zahidrahim »

I have installed zendcore for oracle on win2003. the time of my computer is 6:00 PM
but with the code <?=date("d-m-Y H:i:s")?>
i get 05-12-2009 08:00 AM

2 hours addition with AM instead of PM.... what can be the issue?
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: <?=date("d-m-Y H:i:s")?>

Post by Eran »

You need to adjust the date.timezone setting in your php.ini
Post Reply