Skip to content

The time for logs within the application is not UTC+8 #16440

Closed Answered by weikangli
weikangli asked this question in Help
Discussion options

You must be logged in to vote

I am trying to find a solution myself, and currently the time on the web page has returned to normal (UTC+8).
The reason for the problem is that I previously added a mapping to the volumes of each service in the doker-compose.yaml file, but after removing it, it will be fine. The configuration statement is as follows

volumes:
      - /etc/localtime:/etc/localtime:ro
      - /etc/timezone:/etc/timezone:ro

Another thing to confirm is to modify two configuration items in the PostgreSQL database configuration file postgresql.conf, as shown below

log_timezone = 'Asia/Shanghai'
timezone = 'Asia/Shanghai'

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by weikangli
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants