Error in Time Zone When Starting tidb-server

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: 启动tidb-server,报时区错误

| username: cf_data

[TiDB Environment] UOC
[TiDB Version] 7.5.0
Single machine deployment of TiDB, all other processes start normally, but when starting tidb-server, the db-4000 log reports an error, roughly stating: Time zone error, Asia/Beijing

| username: hey-hoho | Original post link

Change the system to the Shanghai time zone. Previously, the Beijing time zone indeed didn’t work.

| username: Kongdom | Original post link

Try modifying the time zone as suggested. I haven’t encountered this situation before.

| username: ShawnYan | Original post link

Check what the OS time zone setting is.

Writing +8:00 is also acceptable.

| username: 像风一样的男子 | Original post link

The Beijing time zone is unique to domestic operating systems and is not recognized internationally. Change it to Shanghai.
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

| username: 江湖故人 | Original post link

How to change the time zone in Linux? Why is there no Beijing (Asia/Beijing) time zone

| username: cf_data | Original post link

I made the changes, it started successfully, thank you.

| username: andone | Original post link

Got it, it needs to be changed to Shanghai’s time zone.

| username: ShawnYan | Original post link

Off-topic, actually there is no “Shanghai” time, it’s all “Xi’an” time.

| username: oceanzhang | Original post link

Are you changing the time zone on the system?

| username: 春风十里 | Original post link

Yes, I remember China raised a similar issue that was rejected, saying there is no Washington time zone either.

| username: zhanggame1 | Original post link

Where does Shanghai Time come from?

| username: 像风一样的男子 | Original post link

The time zone established during the Republic of China era did not include a place called Beijing.

| username: dba远航 | Original post link

I’ve always used Shanghai, and I don’t think I’ve ever seen a configuration for Beijing time.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.