Fix merge_after moving on each edit if server timezone is not UTC
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
What does this MR do and why?
Fix merge_after moving on each edit if server timezone is not UTC
References
Please include cross links to any resources that are relevant to this MR. This will give reviewers and future readers helpful context to give an efficient review of the changes introduced.
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
- Change GitLab timezone to something else than UTC (For example using
Japanas in the issue). This has to be done inconfig/gitlab.yml. (This change will be reverted by the nextgdk reconfigure) - Restart GitLab (
gdk restart) to load the new timezone - Edit a MR and set a "Merge after" time.
- Save the MR and open the edit page again.
- The time should not have changed (if you test this without the changes of this MR, the time will shift by some hours, depending on your chosen timezone)
Edited by 🤖 GitLab Bot 🤖