2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00
Ghost/ghost/bootstrap-socket
Daniel Lockyer 7a2f766668
Added logging configuration option for timestamps to use the local timezone
fixes https://github.com/TryGhost/Ghost/issues/15190
refs https://github.com/TryGhost/framework/pull/76

- log output always uses UTC timestamps, but it may be desirable to
  configure logs to use the local machine timezone
- a new config option has been added to `@tryghost/logging` so you can
  switch the logs to the local timezone
- this commit bumps the package and sets the default config option to
  `false`, so it doesn't suddenly change the timezone of the logs
- docs will be updated soon but if you'd like to use the
  timezone-altered timestamps, you can set `logging.useLocalTime` to
  `true`
- credits to https://github.com/levee223 for the implementation and PR
2022-08-31 10:29:55 +01:00
..
lib @tryghost/bootstrap-socket: Switch to @tryghost/logging from injected arg 2021-12-02 12:35:36 +00:00
test Refactored bootstrap-socket API for testability 2020-08-09 17:15:46 +01:00
.eslintrc.js Added new bootstrap-socket package with a test 2020-08-07 16:59:25 +01:00
index.js Refactored bootstrap-socket API for testability 2020-08-09 17:15:46 +01:00
package.json Added logging configuration option for timestamps to use the local timezone 2022-08-31 10:29:55 +01:00