Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: evaluation failed: unknown or incorrect time zone: Asia/Beijing"
UOS Tongxin operating system simulates the deployment of a production environment cluster on a single machine, reporting a time zone error.
The time zone has already been set on the operating system, but it still doesn’t work.
show variables like ‘%time_zone%’;
I did not install the MySQL database, this is the first time deploying a cluster environment.
There is no Beijing time zone in the international time zones, just change it to Shanghai.
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
I made the change, but it still doesn’t work.
I remember that the Tongxin server has a desktop where you can visually modify the time zone, or you can try restarting the server.
I don’t have a desktop, and after restarting, it’s still the same 
tiup cluster check ./topology.yaml --user root [-p] [-i /home/root/.ssh/gcp_rsa]
Can it be automatically fixed? Try this:
tiup cluster check ./topology.yaml --apply --user root [-p] [-i /home/root/.ssh/gcp_rsa]
I used the command timedatectl set-timezone Asia/Shanghai
. I encountered this issue before and tried many commands.
I have tried this as well, but it doesn’t work.
Did you get an error when running tiup cluster check
? Please paste the command result so we can take a look.
You can also try upgrading tiup to the new version.
Set the time zone of the operating system.