Skip to content

Commit sorting is wrong when commits are from different timezones #4496

@braykov

Description

@braykov

Describe the bug
Sorting the commits is based on date and time, but the timezones are not unified to the local one.
Therefore older commits appear higher in the list.

To Reproduce
Find a repo where people from different timezones have committed.

  1. Go to 'Commits'
  2. Click on j and k to go up and down between the commits and notice the date time in the patch sections
  3. See how sorting of commits within one day is wrong because the time zone is different

Expected behavior
I expect all commits of the repo to have CommitDate in the local timezone

Screenshots
not applicable - it's my company's data

Version info:
commit=5f809809dda06c98e51743ac8c19af6a26a5984b, build date=2025-04-14T08:30:35Z, build source=binaryRelease, version=0.49.0, os=darwin, arch=arm64, git version=2.49.0

git version 2.49.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions