Re: Timezone question
On 17Jul2018 19:37, Ed Greshko wrote: On 07/17/18 19:33, Danny Horne via users wrote: On 17/07/18 12:05, Cameron Simpson wrote: What's in the environment? I like "env | sort". This nailed it, for some reason (don't ask why, I just don't know), but I placed 'export TZ=UTC' in .bashrc. Removing this and logging in again now shows the correct timezone when using 'date'. Also, check /etc/timezone, normally a symlink to the desired system default timezone file. Not sure if this has changed in Fedora 28, but I don't have /etc/timezone on any of my servers. I've previously seen it before, as either a symlink to a file in /usr/share/zoneinfo, or a file from that directory copied to /etc/timezone. Not sure if I have a problem in that area or not. The link is not /etc/timezone but /etc/localtime Thank you, my error. Cheers, Cameron Simpson ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org/message/6TOVJZS235OHWG5RCJNV42JNXRTHAD3K/
Re: Timezone question
On 17/07/18 12:37, Ed Greshko wrote: > Also, check /etc/timezone, normally a symlink to the desired system >>> default timezone file. >>> >> Not sure if this has changed in Fedora 28, but I don't have >> /etc/timezone on any of my servers. I've previously seen it before, as >> either a symlink to a file in /usr/share/zoneinfo, or a file from that >> directory copied to /etc/timezone. >> >> Not sure if I have a problem in that area or not. > The link is not /etc/timezone but /etc/localtime > Thanks for the clarification Ed, all my servers show /etc/localtime as a symlink to the correct timezone signature.asc Description: OpenPGP digital signature ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org/message/2DYQBHZTFJZVCVIUO7PNEAF5SGK7ID4W/
Re: Timezone question
On 07/17/18 19:33, Danny Horne via users wrote: > On 17/07/18 12:05, Cameron Simpson wrote: >> What's in the environment? I like "env | sort". > This nailed it, for some reason (don't ask why, I just don't know), but > I placed 'export TZ=UTC' in .bashrc. Removing this and logging in again > now shows the correct timezone when using 'date'. >> Also, check /etc/timezone, normally a symlink to the desired system >> default timezone file. >> > Not sure if this has changed in Fedora 28, but I don't have > /etc/timezone on any of my servers. I've previously seen it before, as > either a symlink to a file in /usr/share/zoneinfo, or a file from that > directory copied to /etc/timezone. > > Not sure if I have a problem in that area or not. The link is not /etc/timezone but /etc/localtime -- Conjecture is just a conclusion based on incomplete information. It isn't a fact. signature.asc Description: OpenPGP digital signature ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org/message/X7YDPTHP2CPDSTHMH6SXXHXEV7SBGYXL/
Re: Timezone question
On 17/07/18 12:05, Cameron Simpson wrote: > What's in the environment? I like "env | sort". This nailed it, for some reason (don't ask why, I just don't know), but I placed 'export TZ=UTC' in .bashrc. Removing this and logging in again now shows the correct timezone when using 'date'. > > Also, check /etc/timezone, normally a symlink to the desired system > default timezone file. > Not sure if this has changed in Fedora 28, but I don't have /etc/timezone on any of my servers. I've previously seen it before, as either a symlink to a file in /usr/share/zoneinfo, or a file from that directory copied to /etc/timezone. Not sure if I have a problem in that area or not. Thanks for the reply ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org/message/RFN3BT5S3MM4CVV65GRMVWWBYOMUNRNN/
Re: Timezone question
On 17Jul2018 11:48, Danny Horne 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 ___ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org 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@lists.fedoraproject.org/message/7GIZXSBCCQA3RLD3XZD6INGVSX2EGHGA/