convert-tz

MySQL CONVERT_TZ()

血红的双手。 提交于 2019-11-26 06:07:10
问题 I am trying to set up a database that stores daily alert times as specified by users. For example, the user wants to receive an alert if some criterion is met each day between 7:00 AM and 7:30 AM. In trying to implement this, I need to accommodate daylight saving time. Here\'s my attempted solution: Store the users local time zone (in long form, e.g. \"US/Eastern\") information in one table (say userInfo), and the alarm times in another table (say userAlarms). When querying the userAlarms