Why is logbook/history in UTC?

I believe I’ve configured my timezone correctly (TZ= in the environment in docker-compose.yml), and the logs and time_date sensor show the correct local time, but the logbook and history pages show everything in UTC. Is this expected, and can it be changed?

This applies to the little history charts shown when you look up an entity in the configuration section too.

Is it expected, or can this be configured somewhere?