github-cli doesn't respect TZ env · Issue #13704 · cli/cli · GitHub
Skip to content

github-cli doesn't respect TZ env #13704

Description

@omnigenous

Describe the bug

#1504 is closed but this seems to be an issue still.

Affected version

gh version 2.95.0 (2026-06-17)
https://github.com/cli/cli/releases/tag/v2.95.0

Steps to reproduce the behavior

  1. TZ=UTC gh pr merge N --squash
  2. See timezone offset in git log

Expected vs actual behavior

Respect "TZ" env variable. Timezone offset should be "00:00" with TZ=UTC

A little off topic but can timezone be changed in GitHub Web? And if yes, would it affect timezone that github-cli will use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions