pgcli icon indicating copy to clipboard operation
pgcli copied to clipboard

Set session timezone to local timezone on startup

Open maximsmol opened this issue 4 months ago • 2 comments

Description

Sets the session time zone to the system time zone after connecting.

Adds tzlocal as a dependency for a cross-platform way of getting the current time and handling the TZ environment variable. I've considered including code for this directly but we need to handle a lot of different Windows quirks. This package adds 126KB to the on-disk installation size.

Checklist

  • [X] I've added this contribution to the changelog.rst.
  • [X] I've added my name to the AUTHORS file (or it's already there).
  • [X] I installed pre-commit hooks (pip install pre-commit && pre-commit install), and ran black on my code.

maximsmol avatar Oct 16 '24 22:10 maximsmol