-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Local time zone in timestamps #13925
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Paging @silverwind - is it possible recent changes to js have broken this? |
No, I've never touched those. I remember suggesting them to be converted in JS to browser timezone but I think @lunny persisted that they should render in the server timezone. |
I've tested 1.9.0, 1.10.0, 1.11.0 and 1.12.0. They all have the same issue. This is also reproducible in https://try.gitea.io Here: I create a repo 4 minutes ago and it's marked to be an operation yesterday. BTW, I'm at AEDT. |
See https://docs.gitea.io/en-us/config-cheat-sheet/#time-time . You can change the default time zone and even the format which will be displayed on UI. |
@lunny I promise I change that and it works......partially works. It only changes the time when the mouse hovers on the commit and the time IS correct now. |
@lunny The problem is not the time in the text format but the table. |
@Colin5887 Your problem is not the same as this one. I think you can create a new issue so that we can track that. |
Why the issue has been closed? "Change timezone on server” is not the real solution. |
@mozoh see my reply #13925 (comment) |
@lunny your reply is about changing default, but not for local timezone. Every client can have its own timezone, different from the server. So, there will no solution for this as i understand. |
Yes, we need some JS that runs during page load that converts timestamp to local. Should probably be inline so wrong timestamps never even render (can't put it in the main js bundle because that takes time to load). |
this similar to / the same as #6087 |
#6087 is for heatmap, this one is the time on feeds . |
Fixed by #23988 |
[x]
):Description
Popup timestamps are always in UTC, but not browser timezone wherever I am.
There is a closed issue about this #6004, but seems like it is being reproduced again.
Screenshots
The text was updated successfully, but these errors were encountered: