SystemD下,任务栏时间显示不对

其他Linux/Unix/BSD/OSX等发行版讨论
回复
xopher
帖子: 31
注册时间: 2008-09-29 17:08

SystemD下,任务栏时间显示不对

#1

帖子 xopher » 2011-08-04 20:11

用systemD启动,任务栏中间那个时间显示不对。

我的 /etc/rc.conf设置的是 localtime,用init启动就正常。

在终端用date输出的时间也对。
头像
cuihao
帖子: 4793
注册时间: 2008-07-24 11:33
来自: 郑州
联系:

Re: SystemD下,任务栏时间显示不对

#2

帖子 cuihao » 2011-08-04 20:12

Archwiki说,用systemd的话,必须调成UTC:
https://wiki.archlinux.org/index.php/Systemd
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 绿
Site: CUIHAO.TK    Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~
xopher
帖子: 31
注册时间: 2008-09-29 17:08

Re: SystemD下,任务栏时间显示不对

#3

帖子 xopher » 2011-08-05 23:22

全部改成UTC了,刚开始忘了改BIOS的时间,弄得显示不对,还以为配错了。
dongfanglu
帖子: 523
注册时间: 2007-12-13 23:34

Re: SystemD下,任务栏时间显示不对

#4

帖子 dongfanglu » 2011-08-09 21:14

为什么就不能支持localtime呢?
头像
cuihao
帖子: 4793
注册时间: 2008-07-24 11:33
来自: 郑州
联系:

Re: SystemD下,任务栏时间显示不对

#5

帖子 cuihao » 2011-08-09 21:22

dongfanglu 写了:为什么就不能支持localtime呢?
貌似fedora的就支持。
不清楚为啥Arch的不行。

不过使用UTC是Unix系统的一贯风格啦。
求人不如求它仨: 天蓝的Wiki 屎黄的Wiki 绿
Site: CUIHAO.TK    Twitter: @cuihaoleo
Machine: Athlon64 X2 5200+ / 2x2GB DDR2-800 / GeForce GTS 450
AD: ~まだ見ぬ誰かの笑顔のために~
头像
cnkilior
论坛版主
帖子: 4984
注册时间: 2007-08-05 17:40

Re: SystemD下,任务栏时间显示不对

#6

帖子 cnkilior » 2011-08-10 0:14

Yes, it is written systemd, not system D or System D, or even SystemD. And it isn't system d either. Why? Because it's a system daemon, and under Unix/Linux those are in lower case, and get suffixed with a lower case d. And since systemd manages the system, it's called systemd. It's that simple. The only situation where we find it OK to use an uppercase letter in the name (but don't like it either) is if you start a sentence with systemd. On high holidays you may also spell it sÿstëmd. But then again, Système D is not an acceptable spelling and something completely different (though kinda fitting).
dongfanglu
帖子: 523
注册时间: 2007-12-13 23:34

Re: SystemD下,任务栏时间显示不对

#7

帖子 dongfanglu » 2011-08-10 22:47

我在/etc/rc.local里面添加hwclock --systz来解决
回复