Print admin 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
roice
Forum Commoner
Posts: 35
Joined: Tue Mar 02, 2010 9:14 am

Print admin time

Post by roice »

Hello,
I built a form where my visitor can schedule appointment. I want my system to show them the time that posible to schedule but with GMT+2.
meaning, if I set time between 2 and 4, so visitor in France will see 6-8 (because there is 4 hour different between my country and France.
How can I print the local time according GMT+2 ?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Print admin time

Post by requinix »

date_default_timezone_set

Then anytime you use a function like date() it'll give the numbers based on that timezone.
Post Reply