Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone Displaying Incorrectly #4447

Open
asheersingh opened this issue Mar 23, 2025 · 1 comment
Open

Timezone Displaying Incorrectly #4447

asheersingh opened this issue Mar 23, 2025 · 1 comment
Labels

Comments

@asheersingh
Copy link

asheersingh commented Mar 23, 2025

I'm having an issue with the time that is displayed in the NPM UI. I have set the TZ settings in the Docker Compose but it is still not reflecting on the UI. It seems to be defaulting to the current UTC time. My docker compose is attached below. Is anyone else having similar issues?

version: '3.8'
networks:
default:
ipam:
driver: default
config:
- subnet: 172.18.0.0/16
services:
npm:
container_name: jc21-nginx-proxy-manager
image: 'jc21/nginx-proxy-manager:latest'
healthcheck:
test: ["CMD", "/usr/bin/check-health"]
interval: 10s
timeout: 3s
restart: always
ports:
- '8080:80'
- '8443:443'
- '8081:81'
environment:
DB_MYSQL_HOST: "db"
DB_MYSQL_PORT: 3306
DB_MYSQL_USER: "npm"
DB_MYSQL_PASSWORD: "npm"
DB_MYSQL_NAME: "npm"
DISABLE_IPV6: 'true'
TZ: 'Pacific/Auckland'
volumes:
- /home/administrator/docker/npm/data:/data
- /home/administrator/docker/npm/letsencrypt:/etc/letsencrypt
depends_on:
- db
networks:
default:
ipv4_address: 172.18.0.2

db:
container_name: jc21-mariadb-aria
image: 'jc21/mariadb-aria:latest'
healthcheck:
test: ["CMD-SHELL", "mariadb-admin --user=root --password=root --host=localhost ping"]
start_period: 60s
start_interval: 15s
interval: 30s
timeout: 5s
retries: 3
restart: always
environment:
MYSQL_ROOT_PASSWORD: 'root'
MYSQL_DATABASE: 'npm'
MYSQL_USER: 'npm'
MYSQL_PASSWORD: 'npm'
MARIADB_AUTO_UPGRADE: '1'
TZ: 'Pacific/Auckland'
volumes:
- /home/administrator/docker/npm/db:/var/lib/mysql
networks:
default:
ipv4_address: 172.18.0.3

geoipupdate:
container_name: maxmind-geoipupdate
image: 'ghcr.io/maxmind/geoipupdate:latest'
restart: always
environment:
GEOIPUPDATE_ACCOUNT_ID:
GEOIPUPDATE_LICENSE_KEY:
GEOIPUPDATE_EDITION_IDS: GeoLite2-ASN GeoLite2-City GeoLite2-Country
GEOIPUPDATE_FREQUENCY: 12
TZ: 'Pacific/Auckland'
volumes:
- /home/administrator/docker/npm/data/nginx/geoip2:/usr/share/GeoIP
depends_on:
- npm
networks:
default:
ipv4_address: 172.18.0.4

@asheersingh asheersingh changed the title NPM UI TimeZone Incorrect Timezone Displaying Incorrectly Mar 23, 2025
@jc21
Copy link
Member

jc21 commented Mar 24, 2025

Yep I'm seeing this too. I guess I haven't noticed because the exact times are mainly useful for the audit log. The API is returning times as

"created_on": "2025-03-24 04:21:24"

and this probably should be a fully formed iso date with zone. This used to be a UNIX timestamp and I think that was modified in a PR but this wasn't considered.

@jc21 jc21 added the bug label Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants