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.