I store the date / time in my database, this is UTC. I am working on adding conversions when the user selects the time zone, so he shows the local time for them. Basically, the user selects from the form:
<select name="DropDownTimezone" id="DropDownTimezone"> <option value="-12.0">(GMT -12:00) Eniwetok, Kwajalein</option> <option value="-11.0">(GMT -11:00) Midway Island, Samoa</option> <option value="-10.0">(GMT -10:00) Hawaii</option> ...
I can make the parameter value something that I want, but it is easy to remember, as indicated above. What data type will i use for mysql? Does it really matter in this case? Would make a TINYINT? Maybe using ENUM would be a good idea?
Any suggestions would be appreciated.
timezone mysql
Tom
source share