Gitlab Calendar and the French hour change
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
The User Activity Calendar (https://gitlab.com/users/<my_user>/calendar.json) content differ from the Contribution Panel (https://gitlab.com/users/<my_user>/calendar_activities?date=<yyyy-mm-dd>) content after the french Hour Change.
Translation of the Picture (English)
Activity
No Contribution
Saturday, 29th of March, 2025
Contribution of the 29th of March, 2025
11:09pm pushed new branchmainatAdministrator/test
11:11pm pushed to branchmainatAdministrator/test
Translation of the Picture (English)
Activity
2 Contributions
Sunday, 30th of March, 2025
Contribution of the 29th of March, 2025
no contribution were found
Steps to reproduce
-
Create a VM.
-
Install Docker.
-
Pull the Docker image
gitlab/gitlab-ce:17.10.0-ce.0. -
Change the date before the french Hour Change with
date -s '2025-03-29 22:01:00'.
If you are unable to do so, follow the steps :- Run your VM on VirtualBox
- Set the network to
Private Host Network(will allow you to open Gitlab from host but won't allow the VM to access Internet ==> the date then won't be synchronized with the outside world and ourdatecommand won't be interfered with anymore). - Redo the date change
-
Run
tzselectwithEurope(7) andFrance(15) to set your Timezone. -
Start the following Compose file with
docker-compose up -dand wait ~8 minutes :
services:
gitlab:
image: gitlab/gitlab-ce:17.10.0-ce.0
ports:
- 80:80
volumes:
- './logs:/var/log/gitlab'
- './data:/var/opt/gitlab'
- './config:/etc/gitlab'
environment:
TZ: 'Europe/Paris'
shm_size: '256m'
- Log in as any user ; my tests were done using
Root. - Edit your user profile and change the Timzeone to
[UTC+X] Paris(TheXwill either be1or2; it will change depending on when you run those steps). - Create a dummy repo
- Create a dummy commit
- Push
- Shut down the Docker container using
docker-compose down. - Change the date after the french Hour Change with
date -s '2025-03-30 05:00:00'. - Run
tzselectwithEurope(7) andFrance(15) to set your Timezone (i don't know if it's necessary but for procaution i recommend it). - Restart the Compose file with
docker-compose up -dand wait ~4 minutes.
Now, you should be able to see for yourself
Example Project
What is the current bug behavior?
The Activity Calendar and the Contribution Panel do not correlate after the French Hour Change.
What is the expected correct behavior?
The Activity Calendar and the Contribution Panel should still correlate after the French Hour Change.
Also, a push done at 11:05PM before the hour change should still be shown as done at 11:05PM and not as 5 past midnight.
Relevant logs and/or screenshots
Those are the logs from the Firefox Console
- Activity Calendar
- Contribution Panel of the 29th of March, 2025
- Contribution Panel of the 30th of March, 2025
Those are Screenshots from the user profile
Translation of the Picture (English)
Activity
No Contribution
Saturday, 29th of March, 2025
Contribution of the 29th of March, 2025
11:09pm pushed new branchmainatAdministrator/test
11:11pm pushed to branchmainatAdministrator/test
Translation of the Picture (English)
Activity
2 Contributions
Sunday, 30th of March, 2025
Contribution of the 29th of March, 2025
no contribution were found
Backup of the above example
The root password is uazVU7n0aR26aPzxcNMfxgXvC8hhDmcVxHBZnFBjHEI=
gitlab_backup.tar
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Current User: git Using RVM: no Ruby Version: 3.2.5 Gem Version: 3.6.5 Bundler Version:2.6.5 Rake Version: 13.0.6 Redis Version: 7.0.15 Sidekiq Version:7.2.4 Go Version: unknown GitLab information Version: 17.10.0 Revision: d8c1ba94b65 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 16.8 URL: http://0884ae943930 HTTP Clone URL: http://0884ae943930/some-group/some-project.git SSH Clone URL: git@0884ae943930:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 14.41.0 Repository storages: - default: unix:/var/opt/gitlab/gitaly/gitaly.socket GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Gitaly - default Address: unix:/var/opt/gitlab/gitaly/gitaly.socket - default Version: 17.10.0 - default Git Version: 2.48.1.gl1
Results of GitLab application Check
Expand for output related to the GitLab application check
Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 14.41.0 ? ... OK (14.41.0) Running /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-shell-check Internal API available: OK Redis available via internal API: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes (cluster/worker) ... 1/1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Reply by email is disabled in config/gitlab.yml
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
Database config exists? ... yes Tables are truncated? ... skipped All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Cable config exists? ... yes Resque config exists? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... skipped (no tmp uploads folder yet) Systemd unit files or init script exist? ... skipped (omnibus-gitlab has neither init script nor systemd units) Systemd unit files or init script up-to-date? ... skipped (omnibus-gitlab has neither init script nor systemd units) Projects have namespace: ... 1/1 ... yes Redis version >= 6.2.14? ... yes Ruby version >= 3.0.6 ? ... yes (3.2.5) Git user has default SSH configuration? ... yes Active users: ... 1 Is authorized keys file accessible? ... yes GitLab configured to store new projects in hashed storage? ... yes All projects are in hashed storage? ... yes
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished


