Problem with outputting date and time
| From: | Good Fella | Date: | Thu, 17 May 2001 11:17:50 +0000 |
| Subject: | Problem with outputting date and time | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53213@lists.php.net to get a copy of this message | ||
Hi All,
I need help with a small problem. My website has many users from around the world, and they need to submit a form at a certain time (UK Time).
Because of this, I need to display the UK Time on my website.
I do this by putting this code:
<?php echo gmdate("F jS Y, h:ia"); ?>
There is nothing wrong with this code, except for when the clock changes (goes back/forward an hour).
This means that this code is 1 hour behind the real UK Time at the moment. Is there any simple way of adding 1 hour onto this?
It's extremely confusing as it's making users from around the globe late with their submissions.
Thanks for your help and time
SK
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.