function date is giving wrong time???

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
User avatar
Skywalker
Forum Contributor
Posts: 117
Joined: Thu Aug 29, 2002 3:33 am
Location: The Netherlands

function date is giving wrong time???

Post by Skywalker »

this is the function i use
$date=date("D d M Y h:i:s");

it is now 22:11 over here and the function gives me a time of 08:23:blabla
how can this be solved?

+GTM0200 or somthing?

Please help me
Greathings Skywalker
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

probably the timezone is not set properly.
What does

Code: Select all

echo date('T');
return? If the timezone does not fit ask the administrator (if there is one ;) ) "why?"
User avatar
Skywalker
Forum Contributor
Posts: 117
Joined: Thu Aug 29, 2002 3:33 am
Location: The Netherlands

Post by Skywalker »

It gives me to see this [ CET ] I don't have a klew what this means.

Greathings Skywalker
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

CET - Central European Time

Mac
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Post Reply