使用timedatactl命令
timedatectl set-timezone Asia/Shanghai # 设置系统时区为上海
timedatectl set-timezone Asia/Tokyo # 设置系统时区为东京
timedatectl set-timezone Asia/Kolkata #【设置印度时区】
timedatectl set-timezone America/New_York #【设置美国纽约的时区】
常用时区
Africa/Cairo
Asia/Riyadh
Africa/Casablanca
Asia/Seoul
Africa/Harare
Asia/Shanghai
Africa/Monrovia
Asia/Singapore
Africa/Nairobi
Asia/Taipei
Africa/Tripoli
Asia/Tehran
Africa/Windhoek
Asia/Tokyo
America/Araguaina
Asia/Ulaanbaatar
America/Asuncion
Asia/Vladivostok
America/Bogota
Asia/Yakutsk
America/Buenos_Aires
Asia/Yerevan
America/Caracas
Atlantic/Azores
America/Chihuahua
Australia/Adelaide
America/Cuiaba
Australia/Brisbane
America/Denver
Australia/Darwin
America/Fortaleza
Australia/Hobart
America/Guatemala
Australia/Perth
America/Halifax
Australia/Sydney
America/Manaus
Brazil/East
America/Matamoros
Canada/Newfoundland
America/Monterrey
Canada/Saskatchewan
America/Montevideo
Canada/Yukon
America/Phoenix
Europe/Amsterdam
America/Santiago
Europe/Athens
America/Tijuana
Europe/Dublin
Asia/Amman
Europe/Helsinki
Asia/Ashgabat
Europe/Istanbul
Asia/Baghdad
Europe/Kaliningrad
Asia/Baku
Europe/Moscow
Asia/Bangkok
Europe/Paris
Asia/Beirut
Europe/Prague
Asia/Calcutta
Europe/Sarajevo
Asia/Damascus
Pacific/Auckland
Asia/Dhaka
Pacific/Fiji
Asia/Irkutsk
Pacific/Guam
Asia/Jerusalem
Pacific/Honolulu
Asia/Kabul
Pacific/Samoa
Asia/Karachi
US/Alaska
Asia/Kathmandu
US/Central
Asia/Krasnoyarsk
US/Eastern
Asia/Magadan
US/East-Indiana
Asia/Muscat
US/Pacific
Asia/Novosibirsk
————————————————
版权声明:本文为CSDN博主「与物为春」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_43824829/article/details/124043038