desktop
desktop copied to clipboard
"Friendly" time stamp gives wrong times for some commits
The problem
At this exact time of writing:
Sat Jan 13 10:22:47 AM UTC 2024according to$Date -uSat Jan 13 11:22in human-friendly local time as shown by my OS
Looking at git commit history:
Thursday is not "1d" ago from time "now", neither in local nor in universal time.
Possibly "1d" is the answer GD's "Friendly Time" library provider gives you.
Unfortunately, it is wrong*. On any day X+1, claiming that something happened "1d" ago means it happened on day X.
* A reasonable exception is for a conversation that takes place past midnight where you are, mentally, still located in the prior day. This is not context Github Desktop has available to it.
Release version
2.8.1-linux1
Operating system
Pop!_OS 22.04 LTS
Steps to reproduce the behavior
Make a commit
Wait
Hover over it.
Log files
No response
Screenshots
No response
Additional context
No response