In PHP you can change the timezone with a simple line of code
date_default_timezone_set('Europe/London');
My problem I encounter is making a timezone changer that is user based. I want to have the user use a drop box with timezone options and using MySQL keep it saved on the user's data variables. My issue is related to how the time zones are handled by PHP, specifically with the names that are given to each variable. It is confusing enough having time zones with names like the following.
- Europe/London
- Asia/Shanghai
- America/Dawson
That isn't the only problem, there are so many the numbers of different time zone names reach the hundreds. I am not sure of those hundreds which one to use because I obviously cannot use them all as that would be a bit redundant and inefficient. I would use time zones like GMT+5 or GMT-1
but the PHP manual says I shouldn't use them, and from what I read they do not support DST. I am wondering what I should do in order to get a good list of time zones that would be good for my purposes. Or if someone is kind enough they could forward me to a list that I could use.
I am looking for any list that can cover most time zones.
TL;DR I need help in figuring out what time zones to use for a time zone drop box.