Re: Timezone question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 17Jul2018 11:48, Danny Horne <danny@xxxxxxxxxx> wrote:
I recently changed my Fedora 28 servers from UTC to Europe/London
timezone, so now it's displaying times in BST (British Summer Time). 
Come October this will change to GMT (Greenwich Mean Time).

1)  Will the timezone change automatically (account for the hours
difference)?

It should do. A timezone says that the offset from UTC is this many hours during these times and that many hours these other times. The OS workings in seconds - all the timezone/localtime stuff is just presentation.

2)  Will rsyslog continue to post log times as BST or will it
automatically change to GMT without having to restart it?

That, OTOH, I don't know. The timezone might be looked up every time a timestamp is transcribed. But also, you can override the system default from /etc/timezone by specifying your timezone in the environment (so that people logged in from different timezones can see things in their own local time in listings, and work in their local time).

As such, you may need to restart some services for them to notice the change. And it might vary with the service :-(

I've also just discovered a weird problem.  I have three servers all
configured for Europe/London timezone.  Two show times in BST when using
the 'date' command, but one still shows as UTC (see below).

What have I missed?

What's in the environment? I like "env | sort".

Also, check /etc/timezone, normally a symlink to the desired system default timezone file.

[root@kepler ~]# date
Tue 17 Jul 11:42:53 BST 2018
[root@kepler ~]#
[root@kepler ~]# timedatectl
                      Local time: Tue 2018-07-17 11:42:56 BST
                  Universal time: Tue 2018-07-17 10:42:56 UTC
                        RTC time: Tue 2018-07-17 10:42:56
                       Time zone: Europe/London (BST, +0100)
       System clock synchronized: yes
systemd-timesyncd.service active: yes
                 RTC in local TZ: no

[root@hawking log]# date
Tue 17 Jul 10:43:07 UTC 2018
[root@hawking log]#
[root@hawking log]# timedatectl
                      Local time: Tue 2018-07-17 11:43:10 BST
                  Universal time: Tue 2018-07-17 10:43:10 UTC
                        RTC time: Tue 2018-07-17 10:43:10
                       Time zone: Europe/London (BST, +0100)
       System clock synchronized: yes
systemd-timesyncd.service active: yes
                 RTC in local TZ: no

Thanks for looking

Yeah, I'd suspect the shell environment, since your timedatectl outputs look equivalent.

Cheers,
Cameron Simpson <cs@xxxxxxxxxx>
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx/message/7GIZXSBCCQA3RLD3XZD6INGVSX2EGHGA/



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux