gitea Incorrect time to display uploaded files #4213

Closed
opened 2025-11-02 05:42:37 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @netlol on GitHub (Oct 31, 2019).

2019-10-31_123336

  • Gitea version (or commit ref):1.95
  • Git version:2.22.0
  • Operating system:Windows 10 or windows 2019
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

The display time of uploading project files through gitea (seem only windows platform has this issue)is incorrect(only on Web Interface is wrong). After 14 hours of uploading, please analyze the reasons. Thank you.
...

Screenshots

Originally created by @netlol on GitHub (Oct 31, 2019). ![2019-10-31_123336](https://user-images.githubusercontent.com/33304953/67920585-ba192680-fbdf-11e9-9e76-abe5a5582681.png) - Gitea version (or commit ref):1.95 - Git version:2.22.0 - Operating system:Windows 10 or windows 2019 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [x] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ ] No - [x] Not relevant - Log gist: ## Description The display time of uploading project files through gitea (seem only windows platform has this issue)is incorrect(only on Web Interface is wrong). After 14 hours of uploading, please analyze the reasons. Thank you. ... ## Screenshots <!-- **If this issue involves the Web Interface, please include a screenshot** -->
Author
Owner

@lunny commented on GitHub (Oct 31, 2019):

You can config them on app.ini.

@lunny commented on GitHub (Oct 31, 2019): You can config them on app.ini.
Author
Owner

@netlol commented on GitHub (Oct 31, 2019):

I try to add time setting below in my app.ini and restart gitea, seem nothing change.
[time]
FORMAT = UnixDate
DEFAULT_UI_LOCATION = Asia/Taipei

Then I try 1.10.0-rc2 with default setting, the time is OK.

And I add the time section above, the console display "2019/10/31 21:17:04 ...s/setting/setting.go:831:NewContext() [F] Load time zone failed: The system cannot find the path specified."

@netlol commented on GitHub (Oct 31, 2019): I try to add time setting below in my app.ini and restart gitea, seem nothing change. [time] FORMAT = UnixDate DEFAULT_UI_LOCATION = Asia/Taipei Then I try 1.10.0-rc2 with default setting, the time is OK. And I add the time section above, the console display "2019/10/31 21:17:04 ...s/setting/setting.go:831:NewContext() [F] Load time zone failed: The system cannot find the path specified."
Author
Owner

@netlol commented on GitHub (Nov 1, 2019):

I think I solved the problem.
As long as I don't set FORMAT to an empty string, RFC1123 or UnixDate ,the display time is correct.

@netlol commented on GitHub (Nov 1, 2019): I think I solved the problem. As long as I don't set FORMAT to an empty string, RFC1123 or UnixDate ,the display time is correct.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4213