incubator-answer icon indicating copy to clipboard operation
incubator-answer copied to clipboard

Container timezone not correct

Open sivdead opened this issue 1 year ago • 3 comments

Describe the bug when deploy with docker,the container's date is not correct

To Reproduce Steps to reproduce the behavior:

docker run -d -p 9080:80 -v answer-data:/data --name answer answerdev/answer:latest
docker exec -it answer bash
date

Expected behavior date should be consistent with host's date

Screenshots image

sivdead avatar Sep 14 '23 09:09 sivdead

@sivdead The dete command looks show the UTC time.

LinkinStars avatar Sep 15 '23 03:09 LinkinStars

@sivdead The dete command looks show the UTC time.

but i see the log date is also incorrectly..

sivdead avatar Sep 15 '23 10:09 sivdead

maybe we should add an optinon for timezone setting.

mingcheng avatar Sep 16 '23 10:09 mingcheng

Maybe we can close this issue via https://github.com/apache/incubator-answer/pull/581

jihuayu avatar Jan 09 '24 07:01 jihuayu