posted 17 years ago
Hi I want to show some information to people who are in different time zones (for now say only in usa).
The information includes timestump that is in GMT. I want to show them in EST, EDT, PST, PDT and so on.
I can ask users to give their timezone. Then on, I want to automate the whole process of showing the time. I know the main part is just adding or subtracting the hour, but the problem comes with daylight saving time. How do I handle that?
I'm not expectating the code (even though a full function that takes GMT and a timezone and give back the time would be ideal), but some headstart would be appreciated.
Thanks in advanced.