Tag Archives: timezone

របៀបប្តូរ​ time zone ពីខំម៉ាន​ឡាញ​ក្នុង​អ៊ូប៊ុនធូ

ថ្ងៃ​នេះ ខ្ញុំ​បានទទួល Odroid-C2 ដែល​បាន​ទិញ​ពី​ Hardkernel កាលពីអាទិត្យ​មុន។ OS ដែល​អាច​ដើរលើ​វាបាន​ក្នុង​ពេលនេះ​​ មាន​តែ Ubuntu Mate 16.04 LTS ដែល​ជាបេតានៅឡើយ។

Time zone ដែល​មាន​ស្រាប់ជាដើម​គឺ EST (American Eastern Standard Time)។​ ខ្ញុំ​ត្រូវការ AEST (Australian Eastern Standard Time) ព្រោះខ្ញុំ​នៅ​ស៊ីដនី។ នេះ​ជាខំម៉ាន​ដែល​អាចផ្តូរ Time zone បានដោយ​វាយពីធើរមិណល់។

មុន​ដំបូង ឆែក​មើលមុនសិន៖

odroid64:~# date
Fri Mar 11 08:13:04 EST 2016

ប្រើខំមាន នេះ​ដើម្បី​ប្តូរ​ time zone៖

odroid64:~# dpkg-reconfigure tzdata

ជ្រើសយក​ប្រទេស រួច​ទីក្រុង។​ នេះជាលទ្ធផល៖

Current default time zone: 'Australia/Sydney'
Local time is now:      Sat Mar 12 00:13:57 AEDT 2016.
Universal Time is now:  Fri Mar 11 13:13:57 UTC 2016.

Ref: http://askubuntu.com/questions/3375/how-to-change-time-zone-settings-from-the-command-line

Set Timezone in Fedora 20

While looking at the log file on my Raspberry Pi (running Fedora 20 Remix), I noticed that the date/time didn’t look right.

# date
Mon Jul 21 09:01:18 EDT 2014
# timedatectl 
      Local time: Mon 2014-07-21 08:56:16 EDT
  Universal time: Mon 2014-07-21 12:56:16 UTC
        Timezone: n/a (EDT, -0400)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: yes
 Last DST change: DST began at
                  Sun 2014-03-09 01:59:59 EST
                  Sun 2014-03-09 03:00:00 EDT
 Next DST change: DST ends (the clock jumps one hour backwards) at
                  Sun 2014-11-02 01:59:59 EDT
                  Sun 2014-11-02 01:00:00 EST

EDT is a North American Eastern Daylight Time, which is 4 hours behind UTC. You can read more about it here. In my case, I prefer the time zone set to AEST (Australian Eastern Standard Time), which is 10 hour ahead of UTC.

Here’s how it can be done.

# timedatectl set-timezone Australia/Sydney
# timedatectl status
      Local time: Mon 2014-07-21 23:06:22 EST
  Universal time: Mon 2014-07-21 13:06:22 UTC
        Timezone: Australia/Sydney (EST, +1000)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: no
 Last DST change: DST ended at
                  Sun 2014-04-06 02:59:59 EST
                  Sun 2014-04-06 02:00:00 EST
 Next DST change: DST begins (the clock jumps one hour forward) at
                  Sun 2014-10-05 01:59:59 EST
                  Sun 2014-10-05 03:00:00 EST
# date
Mon Jul 21 23:06:25 EST 2014

Tonight I learned a new command ‘timedatectl’, thanks to the link found in below credit.

Credit: Fedora 20 – Set Timezone:Server World