-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Due is shown incorrectly #21999
Comments
Yeah, it's caused by mismatch timezones. The exact due date is I know it's confusing, but it's not complicated to solve it, just set the timezone of the container to your preferred one. |
I think that's not the point. It uses different strategy (different time zone) in the time picker and the field. It is not confusing, but incorrect. This is something new in 1.18, 1.17 works correctly with the same settings. |
In 1.17 they did use the same timezone, until #21440. @yardenshoham Any ideas? |
Your explanation is correct. It's a timezone mismatch issue. The problem is that the Due Date field input uses UTC while it should be localized. |
Backport go-gitea#22302 Previously, the last minute of the chosen date caused bad timezone rendering. For example, I chose January 4th, 2023. ### Before ```html <time data-format="date" datetime="Wed, 04 Jan 2023 23:59:59 +0000">January 5, 2023</time> ``` ### After ```html <time data-format="date" datetime="2023-01-04">January 4, 2023</time> ``` --- Closes go-gitea#21999 Signed-off-by: Yarden Shoham <[email protected]>
Previously, the last minute of the chosen date caused bad timezone rendering. For example, I chose January 4th, 2023. ### Before ```html <time data-format="date" datetime="Wed, 04 Jan 2023 23:59:59 +0000">January 5, 2023</time> ``` ### After ```html <time data-format="date" datetime="2023-01-04">January 4, 2023</time> ``` --- Closes #21999 Signed-off-by: Yarden Shoham <[email protected]>
Backport #22302 Previously, the last minute of the chosen date caused bad timezone rendering. For example, I chose January 4th, 2023. ### Before ```html <time data-format="date" datetime="Wed, 04 Jan 2023 23:59:59 +0000">January 5, 2023</time> ``` ### After ```html <time data-format="date" datetime="2023-01-04">January 4, 2023</time> ``` --- Closes #21999 Signed-off-by: Yarden Shoham <[email protected]>
Description
The issue is here: https://try.gitea.io/pan_dunski/test/issues/1
I've chosen due as 2022-12-02 but after save it is converted to 2022-12-03
My timezone is CEST
Gitea Version
1.18.0+rc1
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
No response
Operating System
No response
How are you running Gitea?
I'm using official chart with the following values:
Database
PostgreSQL
The text was updated successfully, but these errors were encountered: