php - Asking for a users timezone and putting that info into date_default_timzone_set() -


i making web app going ask user his/her timezone in dropdown. dropdowns have found ones values equal number or w/e of timezone (for example: -8 pst) use need able put date_default_timezone_set() , number wont work... need "america/los_angeles" value.

how find list or convert "-8" string?

i open other ways of going this. basic idea of app show users schedule , show time , when next tasks are, why need timezone.

use gmt-08:00. given -8 can construct string sprintf.

the time zone offset not enough because of daylight savings time. example of europe @ gmt+02:00, @ gmt+01:00 in winter.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -