go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.39k stars 5.43k forks source link

Wrong day when populating activity heapmap #6879

Closed dpedu closed 5 years ago

dpedu commented 5 years ago

Description

When I perform some contributing-like activity on a Gitea instance (such as pushing commits, creating a repo, etc), Gitea populates a graphical heatmap of activity shown on my account's profile.

Gitea often highlights the wrong day when this is done. Seen screenshots.

On try.gitea.io, I performed the following steps to produce the screenshot below:

The site correctly shows this on my profile, Joined on May 08, 2019. However, the heatmap put this activity under May 7th instead of the 8th, labeling me as a time traveler.

I use Gitea's official docker image - https://hub.docker.com/r/gitea/gitea/, which exhibits the same problem. I was unable to find any gitea config file settings relevant to time zones or time offsets. Gitea did not obey either setting the TZ env var (to America/Los_Angeles) nor /etc/localtime nor /etc/timezone.

The expected result is that contributions show up on the day they were actually pushed into gitea.

Screenshots

Screen Shot 2019-05-08 at 8 56 16 AM
jolheiser commented 5 years ago

Same as #6087?