Hi all,
I’m running the latest version of NocoBase v1.7.14 on Docker. My time zone is New Zealand (Pacific/Auckland), and I’ve configured the environment as follows:
- Docker environment variable:
TZ=Pacific/Auckland - Mounted timezone files in docker-compose.yml:
/etc/localtime:/etc/localtime:ro
/etc/timezone:/etc/timezone:ro
- The NocoBase database is MariaDB v11.4, and its time zone is also set to Pacific/Auckland.
Despite these settings, I’m having an issue with the date-based data scope filter (in a table block) set to “Today”.
For example, today is 18 June, but the table shows records from 17 June instead. Interestingly, after 12:00 PM (noon) local time, it starts showing the correct records (18 June).
It seems like the system is calculating “Today” in UTC or using the wrong offset until midday.
Is there another timezone setting I might have missed, either in NocoBase or its frontend/backend logic?
Any help or suggestions would be greatly appreciated.
Regards
Napat