timezone stays in gmt #314

Closed
opened 2026-10-05 04:12:39 +02:00 by adam · 4 comments
Owner

Changed the timezone to America/Vancouver and my buffer playback still shows time in GMT

znc.conf:

TimestampFormat = [%b %d / %I:%M %p]
Timezone = America/Vancouver

output:

<***> Buffer Playback...
<user> [Mar 28 / 06:15 AM] some text

6:15 AM was the time in GMT, not PDT like I want.

Also tried restarting znc, no change.

Changed the timezone to America/Vancouver and my buffer playback still shows time in GMT znc.conf: ``` TimestampFormat = [%b %d / %I:%M %p] Timezone = America/Vancouver ``` output: ``` <***> Buffer Playback... <user> [Mar 28 / 06:15 AM] some text ``` 6:15 AM was the time in GMT, not PDT like I want. Also tried restarting znc, no change. <!-- github-sync-id:30367517 -->
adam closed this issue 2026-10-05 04:12:40 +02:00
Author
Owner

In shell, what does env TZ=America/Vancouver date tell you? It should say current date in that timezone.

In shell, what does `env TZ=America/Vancouver date` tell you? It should say current date in that timezone. <!-- github-comment-id:38894595 -->
Author
Owner

Also you didn't say your ZNC version...

Also you didn't say your ZNC version... <!-- github-comment-id:38894617 -->
Author
Owner

version 1.2

env TZ=America/Vancouver date shows time in GMT

My shell timezone is set to PST8PDT,M3.2.0,M11.1.0, and resolves to the correc time. Could I use that instead?

version 1.2 `env TZ=America/Vancouver date` shows time in GMT My shell timezone is set to `PST8PDT,M3.2.0,M11.1.0`, and resolves to the correc time. Could I use that instead? <!-- github-comment-id:38895123 -->
Author
Owner

Yes, you can use that.
Fix your server for America/Vancouver TZ to work... ZNC temporarily changes its TZ env value to whatever is set for user and asks OS to format timestamp.
Do you have /usr/share/zoneinfo/America/Vancouver?

Yes, you can use that. Fix your server for America/Vancouver TZ to work... ZNC temporarily changes its TZ env value to whatever is set for user and asks OS to format timestamp. Do you have `/usr/share/zoneinfo/America/Vancouver`? <!-- github-comment-id:38895430 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/znc#314