mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Updated DB client timezone to Z
- whilst `UTC` was working, it's technically not supported as per the docs for `mysql`: https://www.npmjs.com/package/mysql#connection-options - `mysql2`, however, is a bit more strict and throws a warning for unsupported values, so it was flagging up when I was looking at switching to that library - this commit switches over to `Z` AKA Zulu - https://en.wikipedia.org/wiki/Coordinated_Universal_Time so both libraries are happy
This commit is contained in:
parent
700065372f
commit
47260f405a
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ function configure(dbConfig) {
|
|||
}
|
||||
|
||||
if (client === 'mysql') {
|
||||
dbConfig.connection.timezone = 'UTC';
|
||||
dbConfig.connection.timezone = 'Z';
|
||||
dbConfig.connection.charset = 'utf8mb4';
|
||||
|
||||
// NOTE: disabled so that worker processes can use the db without
|
||||
|
|
Loading…
Add table
Reference in a new issue