desktop icon indicating copy to clipboard operation
desktop copied to clipboard

"Friendly" time stamp gives wrong times for some commits

Open SRNissen opened this issue 1 year ago • 0 comments

The problem

At this exact time of writing:

  • Sat Jan 13 10:22:47 AM UTC 2024 according to $Date -u
  • Sat Jan 13 11:22 in human-friendly local time as shown by my OS

Looking at git commit history:

image

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

SRNissen avatar Jan 13 '24 10:01 SRNissen