RE: [PHP] time
| From: | Edward Kay | Date: | Tue, 30 Jan 2007 16:52:02 +0000 |
| Subject: | RE: [PHP] time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-248034@lists.php.net to get a copy of this message | ||
> [snip]
>
> I am writing a program for managing leads and contacts. I would like to
> add
> the ability to see what TIME it is where the contact is not there server
> time.
>
> [/snip]
>
I have implemented this feature in our home-grown CRM system. I used the
list of timezones on Wikipedia as a starting point and store the UTC offset
for each contact (selected from a drop down). When displaying their info, I
use this offset to calculate their local time from my server time.
BTW, you'll need to use a float since there are some non-integer timezone
differences.
Edward