timezone - Should time zone be a user preference in a web-app? -


i'm working on web-app must handle communicating time of particular events people across many time zones.

there not seem reliable way time zone client machine in web app. realize can offset, offset not timezone. (among other things, not consider dst future dates).

is common, or suggested provide timezone user preference, render times in users time zone.

yes. store timestamps in utc, convert user's timezone. should able come list of timezones include not offset utc, whether or not use dst (and, matter, when switch to/from dst).

edit: specifically, you're looking tz database. provide pretty need.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -