如何在timedatectl centos上启用dst

我想知道如何在centos7 timedatectl中启用Dst?

目前我得到:

[root@HP-Test ~]# timedatectl Local time: Fri 2017-09-22 00:07:01 +0330 Universal time: Thu 2017-09-21 20:37:01 UTC RTC time: Thu 2017-09-21 20:37:01 Time zone: Asia/Tehran (+0330, +0330) NTP enabled: yes NTP synchronized: no RTC in local TZ: no DST active: no Last DST change: DST ended at Thu 2017-09-21 23:59:59 +0430 Thu 2017-09-21 23:00:00 +0330 Next DST change: DST begins (the clock jumps one hour forward) at Wed 2018-03-21 23:59:59 +0330 Thu 2018-03-22 01:00:00 +0430 

我想启用夏令时,所以它会跳回来或前进的时间。

DST是你的时间点的结果,因为你的时钟在2017-09-22这意味着它将DSTclosures,直到2018-03-22你的时区。 除了改变你的系统时间,没有办法改变。

如果你想这样做的应用程序testing,那么你可能希望仔细看看你的testing框架,因为一些closuresfunction重载影响date/时间的testing目的。