The interface to timedated on DBus, from our db command. The command below change the symlink /etc/localtime
.
[root@davidep5]# db ‘NethServer::Database::Timedate’ set Timezone ‘America/New_York’
[root@davidep5]# db ‘NethServer::Database::Timedate’ show
Timezone=America/New_York
[root@davidep5]# date
Mon Mar 7 11:54:48 EST 2016
[root@davidep5]# db ‘NethServer::Database::Timedate’ set Timezone ‘Europe/Rome’
[root@davidep5]# db ‘NethServer::Database::Timedate’ show
Timezone=Europe/Rome
[root@davidep5]# date
Mon Mar 7 17:55:17 CET 2016
We can now play with hostnamed too!
# db 'NethServer::Database::Hostname' show Chassis=vm Deployment= Hostname=davidep5.nethesis.it IconName=computer-vm KernelName=Linux KernelRelease=3.10.0-327.10.1.el7.x86_64 KernelVersion=#1 SMP Tue Feb 16 17:03:50 UTC 2016 Location=Libvirt davidep1 OperatingSystemCPEName=cpe:/o:centos:centos:7 OperatingSystemPrettyName=CentOS Linux 7 (Core) PrettyHostname=Davide Principi's computer StaticHostname=davidep5.nethesis.it