Skip to content

[BUG] calendar entries show UTC time not user or adventure time zone #740

@BenHolmes

Description

@BenHolmes

My adventure or transportation calendar entries show UTC time not user or adventure time zone.

Steps to reproduce the behavior:

  1. input and adventure or transportation
  2. reference the calendar entry for the corresponding

I expect the calendar entry to reference either local user or adventure time zone not UTC

Image Image Image

Docker Compose

services:
  web:
    #build: ./frontend/
    image: ghcr.io/seanmorley15/adventurelog-frontend:latest
    container_name: adventurelog-frontend
    restart: unless-stopped
    env_file: stack.env
    ports:
      - "${FRONTEND_PORT:-8015}:3000"
    depends_on:
      - server

  db:
    image: postgis/postgis:16-3.5
    container_name: adventurelog-db
    restart: unless-stopped
    env_file: stack.env
    volumes:
      - /adventurelog/data:/var/lib/postgresql/data/

  server:
    #build: ./backend/
    image: ghcr.io/seanmorley15/adventurelog-backend:latest
    container_name: adventurelog-backend
    restart: unless-stopped
    env_file: stack.env
    ports:
      - "${BACKEND_PORT:-8016}:80"
    depends_on:
      - db
    volumes:
      - /adventurelog/media:/code/media/

.env file (passed via portainer stack.env)

PUBLIC_SERVER_URL=http://server:8000 # PLEASE DON'T CHANGE :) - Should be the service name of the backend with port 8000, even if you change the port in the backend service. Only change if you are using a custom more complex setup.
ORIGIN=http://loacalhost:8015
BODY_SIZE_LIMIT=Infinity
FRONTEND_PORT=8015
PGHOST=db
POSTGRES_DB=database
POSTGRES_USER=adventure
POSTGRES_PASSWORD='pgpswrd'
SECRET_KEY='scrtkey'
TZ=America/Los_Angeles
DJANGO_ADMIN_USERNAME=djangoadmin
DJANGO_ADMIN_PASSWORD=pswrd
[email protected]
PUBLIC_URL=http://localhost:8016 # Match the outward port, used for the creation of image urls
CSRF_TRUSTED_ORIGINS=http://localhost:8016,http://localhost:8015
DEBUG=False
FRONTEND_URL=http://localhost:8015 # Used for email generation. This should be the url of the frontend
BACKEND_PORT=8016
DISABLE_REGISTRATION=False
GOOGLE_MAPS_API_KEY={key}
EMAIL_BACKEND='email'
EMAIL_HOST='smtp.protonmail.ch'
EMAIL_USE_TLS=True
EMAIL_PORT=587
EMAIL_USE_SSL=False
EMAIL_HOST_USER='[email protected]'
EMAIL_HOST_PASSWORD='pswrd'
DEFAULT_FROM_EMAIL='[email protected]'

Looks like this could be related to #615 . Could be that I should not be passing TZ=America/Los_Angeles via .env?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions