Skip to content

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

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

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