Skip to content

Skip time zone warning when local and server are the same #1579

Closed

Description

@Smylers

This warning is unnecessary when starting pgcli:

Using local time zone Europe/London (server uses Europe/London)
Use `set time zone <TZ>` to override, or set `use_local_timezone = False` in the config

Especially since the first line is in green, drawing attention to itself over everything else there.

It is possible to get rid of it by setting use_local_timezone = False, but I don't want to do that: if I ever happen to connect to a database which uses a different time zone, then I want to keep using local times.

Would it be possibly simply to skip displaying this when the local and server time zones are the same as each other, so there's nothing to warn about? Thanks.

Activity

  1. added a commit that references this issue on Apr 23, 2026
    52d0226
  2. dbaty commented on Apr 23, 2026

    @dbaty
    Member

    I agree. Here is a pull request: #1580.

  3. added a commit that references this issue on Apr 24, 2026
    91b63b4
  4. added a commit that references this issue on May 12, 2026
    9aaea65
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions