Skip to content

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 branch main at Administrator/test
11:11pm pushed to branch main at Administrator/test

Activity Calendar showing no contribution on the 29th of March 2025, but also showing the Contribution Panel showing 2 contributions

Translation of the Picture (English)

Activity
2 Contributions
Sunday, 30th of March, 2025
Contribution of the 29th of March, 2025
no contribution were found

Activity Calendar showing 2 contributions on the 30th of March 2025, but also showing the Contribution Panel displaying that no contribution were made

Steps to reproduce

  1. Create a VM.

  2. Install Docker.

  3. Pull the Docker image gitlab/gitlab-ce:17.10.0-ce.0.

  4. 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 :

    1. Run your VM on VirtualBox
    2. 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 our date command won't be interfered with anymore).
    3. Redo the date change
  5. Run tzselect with Europe (7) and France (15) to set your Timezone.

  6. Start the following Compose file with docker-compose up -d and 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'
  1. Log in as any user ; my tests were done using Root.
  2. Edit your user profile and change the Timzeone to [UTC+X] Paris (The X will either be 1 or 2 ; it will change depending on when you run those steps).
  3. Create a dummy repo
  4. Create a dummy commit
  5. Push
  6. Shut down the Docker container using docker-compose down.
  7. Change the date after the french Hour Change with date -s '2025-03-30 05:00:00'.
  8. Run tzselect with Europe (7) and France (15) to set your Timezone (i don't know if it's necessary but for procaution i recommend it).
  9. Restart the Compose file with docker-compose up -d and 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

Those are Screenshots from the user profile

Plain Activity Calendar

Translation of the Picture (English)

Activity
No Contribution
Saturday, 29th of March, 2025
Contribution of the 29th of March, 2025
11:09pm pushed new branch main at Administrator/test
11:11pm pushed to branch main at Administrator/test

Activity Calendar showing no contribution on the 29th of March 2025, but also showing the Contribution Panel showing 2 contributions

Translation of the Picture (English)

Activity
2 Contributions
Sunday, 30th of March, 2025
Contribution of the 29th of March, 2025
no contribution were found

Activity Calendar showing 2 contributions on the 30th of March 2025, but also showing the Contribution Panel displaying that no contribution were made

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

Possible fixes

Edited by 🤖 GitLab Bot 🤖