cool-admin-midway icon indicating copy to clipboard operation
cool-admin-midway copied to clipboard

设置时区警告

Open AnkerLeng opened this issue 3 years ago • 1 comments

// 设置时区
timezone: '+08:00',

image

The timezone used when converting a date from the database into a JavaScript date. The timezone is also used to SET TIMEZONE when connecting to the server, to ensure that the result of NOW, CURRENT_TIMESTAMP and other time related functions have in the right timezone. For best cross platform performance use the format +/-HH:MM. Will also accept string versions of timezones used by moment.js (e.g. 'America/Los_Angeles'); this is useful to capture daylight savings time changes.

AnkerLeng avatar Dec 09 '21 16:12 AnkerLeng

5.x 没有这个问题了

cool-team-official avatar Jun 07 '22 02:06 cool-team-official