Red Hat Bugzilla – Bug 480532
uname -a showing wrong timezone
Last modified: 2009-02-02 07:27:40 EST
Description of problem:
`uname -a` shows EST as timezone whereas BDT is the timezone in my server
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run date command
2. run `uname -a` command
Output from machine
[root@<server> ~]# date
Sun Jan 18 19:21:10 BDT 2009
[root@<server> ~]# uname -a
Linux chitra 126.96.36.199-159.fc10.i686.PAE #1 SMP Tue Dec 16 14:59:37 EST 2008 i686 i686 i386 GNU/Linux
BDT is expected in the output of uname
What does following command say?
Thanks for report, however - that's not a bug. Coreutils's uname(1) utility just calls uname(2) - which returns time of compiling kernel (as part of version string) - with locales at the time of compiling kernel - that's EST - as this is timezone used in koji build system. Similar bug was reported in gentoo (http://bugs.gentoo.org/7799) , closed invalid there. In Fedora NOTABUG.
In debian or ubuntu the output shows UTC which makes much more sense. And its always easy to calculate my time from GMT or UTC. Rather than the EST. The world does not stand on EST. People live everywhere and they calculate their time from UTC and understands that quickly and easily.
Suggesting to show UTC time in uname output.
Thanks for suggestion, but I can't do that in uname - it just shows/interprets reports coming from syscall uname(2). Version string is generated at the build time. As koji build system - where are packages build - uses EST time zone, timestamp in kernel version string is generated with EST time zone. I can't change this in coreutils - as version string contains not only date. If Debian/Ububtu uses UTC, their kernel package was compiled on machine with localzone using UTC. Although I agree that usage of "something more general" than EST is good thing, it would probably mean some effort with almost no benefit for Fedora users. I can't change that in coreutils - therefore NOTABUG for coreutils. Koji webpages use UTC, but it seems that buildsystems use EST. It could be discussed in fedora-devel list or reported against koji build system, but there is nothing wrong with uname -a as kernel version is displayed properly, so closing that bug again. Maybe bug against koji (or ticket for fedora rel-eng) with Summary "RFE: Buildsystems should use UTC as their timezone" - with explanation that EST timezone causes kernel version string to be fixed on EST time and making reading of timestamp more difficult to non-US users.
fedoras builders all run UTC.
Then I can't figure out why kernel string contains EST timestamp in version...
date command on x86-5.fedora.phx.redhat.com returns EST (tested now: "Mon Feb 2 07:17:22 EST 2009"). This command is used to create kernel version string during kernel build.