I found the solution. The docker container was not aware of the correct timezone. I found this https://github.com/bastilimbach/docker-MagicMirror/issues/15 and added this to my docker-compose.yml
environment:
- TZ=Europe/Berlin
- SET_CONTAINER_TIMEZONE=true
- CONTAINER_TIMEZONE=Europe/Berlin