Re: How to show proper time to users from around the world
| From: | Richard Lynch | Date: | Wed, 29 Aug 2007 19:11:10 +0000 |
| Subject: | Re: How to show proper time to users from around the world | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-261495@lists.php.net to get a copy of this message | ||
On Wed, August 29, 2007 2:24 am, Hemanth wrote:
> Is there a solution to showing the proper time and date at user
> browsers
> and also recording proper USER times in the database operations in
> mysql
Not really.
You can use Javascript to get what the user's clock SAYS is the
date/time, but WAY too many users have their clocks set wrong, and
you'll never fix that.
You can ask them where they live, or ask them to input their own
time-zone.
Traveling users may prefer to use UTC or something as well, rather
than try to figure out what time-zone they are in this minute (cough
Indiana cough).
--
Please vote for this great band:
http://acl.mp3.com/feature/soundandjury/?band=COMPANY-OF-THIEVES
Requires email confirmation.
One vote per day per email limit.
Obvious ballot-stuffing will be revoked.