Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing UTC timezone #3029

Closed
isius opened this issue Oct 26, 2015 · 8 comments
Closed

Missing UTC timezone #3029

isius opened this issue Oct 26, 2015 · 8 comments
Assignees
Labels
enhancement good-first-issue Appropriate for new contributors

Comments

@isius
Copy link

isius commented Oct 26, 2015

System > System Time > Change System Time > Timezone
Set Time: "Set time automatically using NTP"

Time Zone: Displays "Africa/Abidjan" when server is actually set to UTC. UTC timezone not available in dropdown to select.

@stefwalter
Copy link
Contributor

What does the following command output on your server?

$ timedatectl list-timezones

@stefwalter stefwalter added the question Further information is requested label Oct 26, 2015
@stefwalter stefwalter self-assigned this Oct 26, 2015
@isius
Copy link
Author

isius commented Oct 26, 2015

Hmm, it's quite long at 416 zones (I'll post them all if you wish). UTC isn't among them.
However, $ timedatectl reports timezone as "UTC (UTC, +0000)".

@stefwalter
Copy link
Contributor

This is what I see here:

$ timedatectl list-timezones | grep UTC
UTC

What operating system are you using? This is probably an operating system or a bug in its version of systemd.

@isius
Copy link
Author

isius commented Oct 26, 2015

CentOS Linux release 7.1.1503 (Core).
Indeed, that's the command I used as well. No UTC.

@isius
Copy link
Author

isius commented Oct 26, 2015

Asking around ServerFault has been helpful to get an idea of what's going on. But I'm not sure where that leaves this issue. I could "fix" it at the system level (manually). Or wait for a CentOs patch or update? But I'm wondering if this may be something that should be handled by Cockpit.

For what it's worth, it's true that the timezone isn't in the list of available timezones, but, presumably, the timezone is currently set to a valid timezone, which should be reported as such, yes?
Although that would leave the condition where it's possible that one could change from UTC (for instance) to any other timezone in the list, then be unable to change back to UTC since it would no longer be an available option.

@stefwalter
Copy link
Contributor

For what it's worth, it's true that the timezone isn't in the list of available timezones, but, presumably, the timezone is currently set to a valid timezone, which should be reported as such, yes?

Yes, that's a good point. It should be displayed in any case, even when not in the list of timezones.

Are you interested in making a pull request to fix this? The code is here: https://github.com/cockpit-project/cockpit/blob/master/pkg/systemd/host.js#L823

@stefwalter stefwalter added enhancement good-first-issue Appropriate for new contributors and removed question Further information is requested labels Mar 21, 2016
@Akasurde
Copy link
Contributor

Akasurde commented Jul 6, 2016

@stefwalter I am able to see UTC in given workflow. Is this fixed ?

Fedora 24, Cockpit 0.103

@stefwalter
Copy link
Contributor

I can't reproduce this in Fedora. I don't think it's fixed though, because UTC is listed in the timedatectl list-timezones output no matter what I do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement good-first-issue Appropriate for new contributors
Projects
None yet
Development

No branches or pull requests

3 participants