Set time in Mint 18, 19 and Ubuntu Mate 18.04

In Mint 18 and Ubuntu 16.04 time settings are changed from previous versions. To find out the current settings run command

timedatectl | grep local

To set local time run

sudo timedatectl set-local-rtc 1

To set UTC time run

sudo timedatectl set-local-rtc 0

time