linuxserver / docker-bookstack

A Docker container for the BookStack documentation wiki
GNU General Public License v3.0
797 stars 109 forks source link

Timezone Not Respected #115

Closed serenewaffles closed 1 year ago

serenewaffles commented 2 years ago

linuxserver.io


Revision time stamps are not localized. I'm not sure if this is a Bookstack bug or a container bug or perhaps intended behavior?

Expected Behavior

Time stamps for revisions should be displayed in the container's timezone. e.g. TZ=America/New_York should result in seeing edit timestamps in Eastern Time,

Current Behavior

Time stamps are displayed in UTC.

Steps to Reproduce

  1. Set up a Bookstack instance

Environment

OS: Ubuntu Server 20.04.3 LTS CPU architecture: arm64 How docker service was installed: From the official docker repo (https://get.docker.com)

Command used to create docker container (run/create/compose/screenshot)

  bookstack:
    image: lscr.io/linuxserver/bookstack
    container_name: bookstack
    environment:
      - PUID=500
      - PGID=100
      - APP_URL=https://XXX.net
      - DB_HOST=XXX
      - DB_USER=bookstack
      - DB_PASS=XXX
      - DB_DATABASE=bookstackapp
      - APP_THEME=test
      - TZ=America/New_York
    volumes:
      - bookstack:/config
#    ports:
#      - 6875:80
    restart: unless-stopped
    networks:
      - caddy
    labels:
      caddy: XXX.net
      caddy.reverse_proxy: "{{upstreams 80}}"

Docker logs

github-actions[bot] commented 2 years ago

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

deleyva commented 1 year ago

It happens the same to me

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

HeroXXiv commented 1 year ago

created container recognize TZ check bookstack settings: https://github.com/BookStackApp/BookStack/issues/1832

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 1 year ago

This issue is locked due to inactivity