Day ago count is wrong in dashboard #13877

Closed
opened 2025-11-02 10:55:52 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @kebox7 on GitHub (Dec 25, 2024).

Description

In some cases, the dashboard incorrectly counts the days that have passed. The screenshots below show the different cases:

1. Correct (Now)
Sample 1

3. Wrong
Sample 2

4. Wrong
Sample 3

6. Wrong
Sample 4

7. Correct
Sample 5

Gitea Version

1.22.4

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

No response

How are you running Gitea?

https://github.com/go-gitea/gitea/releases/download/v1.22.4/gitea-1.22.4-linux-amd64

Running on CentOS Linux 7 (Core)

Database

SQLite

Originally created by @kebox7 on GitHub (Dec 25, 2024). ### Description In some cases, the dashboard incorrectly counts the days that have passed. The screenshots below show the different cases: **1. Correct (Now)** ![Sample 1](https://github.com/user-attachments/assets/7cd0d71f-d0d0-41e7-b6ed-73fca0c3b6a2) **3. Wrong** ![Sample 2](https://github.com/user-attachments/assets/ef8c1cf2-3e35-40ef-83cb-08e4c0a3948c) **4. Wrong** ![Sample 3](https://github.com/user-attachments/assets/c168a162-82cf-4f13-8119-36a1254abba9) **6. Wrong** ![Sample 4](https://github.com/user-attachments/assets/68135014-5d18-40cd-b654-06ef68e0efec) **7. Correct** ![Sample 5](https://github.com/user-attachments/assets/8be9d7a3-b1c4-4672-9f07-2f9dc4c0050d) ### Gitea Version 1.22.4 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? https://github.com/go-gitea/gitea/releases/download/v1.22.4/gitea-1.22.4-linux-amd64 Running on CentOS Linux 7 (Core) ### Database SQLite
GiteaMirror added the type/bug label 2025-11-02 10:55:52 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Dec 25, 2024):

It has been fixed in 1.22.6 and 1.23-rc0

@wxiaoguang commented on GitHub (Dec 25, 2024): It has been fixed in 1.22.6 and 1.23-rc0
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13877