Personal tools

Difference between revisions of "How to set up time zone in Yocto-IMX8MM"

From ICOP tech wiki

Jump to: navigation, search
(Created page with "How to set up time zone in Yocto?")
 
Line 1: Line 1:
How to set up time zone in Yocto?
+
== How to set up time zone in Yocto? ==
 +
Boot up EBOX-IMX8MM unit and enter Yocto desktop, click upper-left icon to use weston-terminal.
 +
 
 +
[[File:HOW TO SET UP TIME ZONE-1.png|frameless]]
 +
 
 +
Input below command to get code list of default time zone in Yocto.
 +
 
 +
''ls /usr/share/zoneinfo''
 +
 
 +
[[File:HOW TO SET UP TIME ZONE-2.png|frameless|600x600px]]
 +
 
 +
 
 +
User can search further time zone from sub folder such as Asia, example as below:
 +
 
 +
''ls /usr/share/zoneinfo/Asia''
 +
 
 +
[[File:HOW TO SET UP TIME ZONE-3.png|frameless|620x620px]]
 +
 
 +
 
 +
To change the time zone, execute command:
 +
 
 +
''timedatectl set-timezone XXX''
 +
 
 +
Note: XXX can be the code in sub folder or main folder, for example:
 +
 
 +
''timedatectl set-timezone Asia/Tokyo''
 +
 
 +
[[File:HOW TO SET UP TIME ZONE-4.png|frameless|620x620px]]
 +
 
 +
Or
 +
 
 +
''timedatectl set-timezone ROC (ROC stand for Republic of China, ie: Taiwan)''
 +
 
 +
[[File:HOW TO SET UP TIME ZONE-5.png|frameless|630x630px]]
 +
 
 +
<nowiki>*</nowiki>Input code with identical upper or lower case letters is necessary in Yocto command.
 +
 
 +
 
 +
After time zone changed, Yocto will change system time automatically.
 +
<br />

Revision as of 16:37, 26 January 2021

How to set up time zone in Yocto?

Boot up EBOX-IMX8MM unit and enter Yocto desktop, click upper-left icon to use weston-terminal.

HOW TO SET UP TIME ZONE-1.png

Input below command to get code list of default time zone in Yocto.

ls /usr/share/zoneinfo

HOW TO SET UP TIME ZONE-2.png


User can search further time zone from sub folder such as Asia, example as below:

ls /usr/share/zoneinfo/Asia

HOW TO SET UP TIME ZONE-3.png


To change the time zone, execute command:

timedatectl set-timezone XXX

Note: XXX can be the code in sub folder or main folder, for example:

timedatectl set-timezone Asia/Tokyo

HOW TO SET UP TIME ZONE-4.png

Or

timedatectl set-timezone ROC (ROC stand for Republic of China, ie: Taiwan)

HOW TO SET UP TIME ZONE-5.png

*Input code with identical upper or lower case letters is necessary in Yocto command.


After time zone changed, Yocto will change system time automatically.