Trying to set wake timer, date is confusing
I'm trying to set wake timer with this command
sudo rtcwake -m no -l -t `date +%s -d"2015-09-03 07:00"`
This should wake my computer tomorrow 7am right? However this is the result:
rtcwake: wakeup using /dev/rtc0 at Thu Sep 3 10:00:00 2015
10am really? I type date and system shows correct time but why is it setting ridiculous times here? I know this has something to do with UTC but I don't know what to do. My bios shows correct time, OS shows correct time.
Solution 1:
solution: As Tuxar shared his idea, solution is to disable UTC* (Universal Time Zone)
Let's edit this file and disable it
sudo nano /etc/default/rcS
Take a look at this screen shot http://i.imgur.com/bFHFA8m.png
And edit the line for UTC setting, set it to UTC=no. Then ctrl+x to save, press y key to accept and press enter. At this point you might wanna logout log back in. I rebooted just in case changes are applied.
Now rtcwake
should be using correct time zone.
*tl;dr UTC is an unnecessary invention by "scientists" to replace saying GMT.