WordPress customizer not working – check timezone

Just had a weird issue with my docker containerized wordpress install I use for one of the sites.

When clicking on any customize options it would keep showing me this message over and over again without letting me use customizer:

Your scheduled changes just published

Nothing in the logs. I’ve checked my varnish, checked nginx rules, cleared the transient cache, searched the internet for possible solutions – to no help.

I would then jump into the docker container and checked the timezone on a hunch:

linuxdev@ant1:/tmp$ docker exec -it production-bp-fpm bash
root@30e9e5a183ae:/# date
Mon 19 Sep 2022 10:10:38 AM BST

Ive never heard of BST (British summer time) timezone – and I certainly not configured Ubuntu 20.04 LTS host with that timezone myself. My wordpress install is configured as America/New_York in Settings/General (as I live on the east coast). And my wordpress docker container is configured to share timezone with the host – like this:

      - /etc/localtime:/etc/localtime:ro
      - ${CODE_DIR}:/var/www/site
      - ${FS_DIR}:/appdata

When I checked the docker host – timezone was also set as BST. Again – not sure why that was – as I vividly remember only using UTC when setting up a server (something, somewhere, at some point – got buggy).

Anyways – setting host to UTC and restarting the docker-compose stack solved the issue for me:

sudo timedatectl set-timezone UTC
docker-compose restart

No more wordpress customizer issues – hope this helps somebody. Thanks for reading.

Leave a Comment