PHP timezones, changing the city/time listing

Joined: 06/03/2008

Whenever I have registered for a drupal site I have been frustrated when I try to decide which city to use for the timezone etc. Some geographical areas seem to not be well represented or it may just be difficult for some people to select a timezone based on a 100 field dropdown. Is there a way to limit this? I have sought the answer various places and it seems related to either php or the source php uses. It would be nice to have EST PMT CST etc. Is this possible? Thanks for any help.

Jon

G&G Podcast Host
Matt Farina's picture
Joined: 06/01/2006
alter the form

You can alter the form with something like hook_form_alter to remove the unwanted ones.

Be careful how you remove them. The eastern timezone is really EDT and EST depending on the time of the year. One is with daylight savings and the other without.

Matt Farina
Geeks and God Former Co-Host
www.mattfarina.com

Joined: 06/03/2008
Thanks Matt

I think I REALLY have to learn hook_form_alter!