[Bug 841859] New: I can't disable UTC
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c0 Summary: I can't disable UTC Classification: openSUSE Product: openSUSE Factory Version: 13.1 Beta 1 Platform: x86-64 OS/Version: Other Status: NEW Severity: Major Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: smartinds@gmail.com QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0 When I turn on my laptop, the time is incorrect. So, I go to Yast > System > Configure time and disable the checkbox "UTC" and the time is correct again. BUT, when I re-open Yast, the checkbox "UTC" is enabled again. Reproducible: Always Steps to Reproduce: 1. The time is incorrect. 2. Go to Yast > System > Configure time and disable the checkbox "UTC" 3. Re-open Yast 4. Go to Yast > System > Configure Actual Results: The checkbox "UTC" is enabled again. Expected Results: The checkbox "UTC" must be as I configured, in this case, disable. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c Ye Yuan <yyuan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yyuan@suse.com AssignedTo|bnc-team-screening@forge.pr |yast2-maintainers@suse.de |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c1 Gabriele Mohr <gs@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|yast2-maintainers@suse.de |jsuchome@suse.com --- Comment #1 from Gabriele Mohr <gs@suse.com> 2013-09-26 07:27:05 UTC --- Please attach YaST logs, see http://en.opensuse.org/openSUSE:Report_a_YaST_bug. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c2 Jiří Suchomel <jsuchome@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO CC| |werner@suse.com InfoProvider| |smartinds@gmail.com --- Comment #2 from Jiří Suchomel <jsuchome@suse.com> 2013-09-26 07:56:35 UTC --- .. and attach also your /etc/adjtime, /etc/sysconfig/clock, abd check if the output of hwclock --localtime shows your current time -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c3 Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fcrozat@suse.com --- Comment #3 from Dr. Werner Fink <werner@suse.com> 2013-09-26 08:08:48 UTC --- Are you using dracut instead of mkinitrd? ... Dracut is missing a major feature regarding UTC/localtime in CMOS. Please report the outout of the command lsof /etc/adjtime done as superuser root. Also please attach the output the command journalctl > output.log done as superuser. Beside this I'd like to know *why* you're using localtime in CMOS? I'd like to understand the reasons to break this common rule. Using localtime in CMOS causing trouble twice a year as the linux kernels system clock has to be always in UTC. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c4 --- Comment #4 from Segundo Luis Martín Díaz Sotomayor <smartinds@gmail.com> 2013-09-26 14:08:53 UTC --- Created an attachment (id=560337) --> (http://bugzilla.novell.com/attachment.cgi?id=560337) Yast Log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c5 --- Comment #5 from Segundo Luis Martín Díaz Sotomayor <smartinds@gmail.com> 2013-09-26 14:12:26 UTC --- Created an attachment (id=560339) --> (http://bugzilla.novell.com/attachment.cgi?id=560339) Adjtime -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c6 --- Comment #6 from Segundo Luis Martín Díaz Sotomayor <smartinds@gmail.com> 2013-09-26 14:13:11 UTC --- Created an attachment (id=560340) --> (http://bugzilla.novell.com/attachment.cgi?id=560340) /etc/sysconfig/clock -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c7 --- Comment #7 from Segundo Luis Martín Díaz Sotomayor <smartinds@gmail.com> 2013-09-26 14:13:59 UTC --- Created an attachment (id=560341) --> (http://bugzilla.novell.com/attachment.cgi?id=560341) journalctl > output.log -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c8 --- Comment #8 from Segundo Luis Martín Díaz Sotomayor <smartinds@gmail.com> 2013-09-26 14:19:18 UTC --- <<check if the output of hwclock --localtime shows your current time>> kaede:/home/zchronos # hwclock --localtime jue 26 sep 2013 08:56:01 PET -0.141330 segundos Yep, this is the current time. <<Please report the outout of the command lsof /etc/adjtime>> kaede:/home/zchronos # lsof /etc/adjtime lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs Output information may be incomplete. lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /var/run/user/1000/gvfs Output information may be incomplete. <<<Beside this I'd like to know *why* you're using localtime in CMOS? I'd like to understand the reasons to break this common rule. Using localtime in CMOS causing trouble twice a year as the linux kernels system clock has to be always in UTC.>> Because when I configure in UTC mode, the time wrong. In localtime the time is correct. My country is Peru (America/Lima GMT-5) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c9 --- Comment #9 from Dr. Werner Fink <werner@suse.com> 2013-09-27 06:40:52 UTC --- (In reply to comment #8)
Because when I configure in UTC mode, the time wrong. In localtime the time is correct. My country is Peru (America/Lima GMT-5)
Then the localtime of the user space is not correct configured. First of all the kernelßs system clock is in UTC. Second the user space time (reported by e.f. the command date) is given by the file /etc/localtime which is a symbolic link to one of the zone file below /usr/share/zoneinfo/ which provides the correct teim offset to UTC ... in your case this is America/Lima with UTC-5 *and* it provides the rules used for setting e.g. Daylight Saving Time (DST) Third you can also use the environment variable TZ to override the /etc/localtime by any other zone file below /usr/share/zoneinfo/ E.g. werner@boole:~> TZ=UTC date <--- kernel's clock Fri Sep 27 06:33:44 UTC 2013 werner@boole:~> date <--- User space clock Fri Sep 27 08:33:48 CEST 2013 werner@boole:~> TZ=America/Lima date <--- Overwritten with PET Fri Sep 27 01:34:24 PET 2013 Compare this with http://en.opensuse.org/SDB:Configuring_the_clock -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #560340|application/octet-stream |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c Dr. Werner Fink <werner@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #560339|application/octet-stream |text/plain mime type| | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c10 --- Comment #10 from Dr. Werner Fink <werner@suse.com> 2013-09-27 06:48:10 UTC ---
From the journalctl log:
sep 26 03:43:14 kaede kernel: rtc_cmos 00:05: setting system clock to 2013-09-26 08:43:11 UTC (1380184991) that is that the kernel reads out the clock from the CMOS. If the clock in CMOS is in UTC then the kernel's clock is in UTC. If the symbolic link /etc/localtime points to /usr/share/zoneinfo/America/Lima the date command should report the correct time that is localtime. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c11 Norbert Jurkeit <norbert.jurkeit@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |norbert.jurkeit@web.de --- Comment #11 from Norbert Jurkeit <norbert.jurkeit@web.de> 2013-09-28 15:56:48 UTC --- I encountered the same problem on a dual boot system. Due to limitations of the other OS, the hardware clock is set to local time, therefore I left the check box "computer clock set to UTC" unchecked on the 2nd installation screen. This setup has worked for many years. With openSUSE 13.1 beta the date command shows a local time 2 hours later then the hardware clock, which would be correct if the hardware clock was set to UTC. When I run the Date and Time module from YaST Control Center the mentioned check box is marked as checked although it was not during installation. When I uncheck this box, the time becomes displayed correctly, but this lasts only to next boot. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c12 --- Comment #12 from Dr. Werner Fink <werner@suse.com> 2013-09-30 14:57:40 UTC --- Which initrd are you using ... mkinitrd or dracut? With mkinitrd and changing the CMSO local setting mkinitrd has to be called as well as the CMOS clock should be in localtime. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c13 --- Comment #13 from Segundo Luis Martín Díaz Sotomayor <smartinds@gmail.com> 2013-09-30 16:01:15 UTC --- (In reply to comment #12)
Which initrd are you using ... mkinitrd or dracut?
With mkinitrd and changing the CMSO local setting mkinitrd has to be called as well as the CMOS clock should be in localtime.
I don't change this, so my initrd is "default" I assume it will be mkinitrd. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c14 Norbert Jurkeit <norbert.jurkeit@web.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|smartinds@gmail.com | --- Comment #14 from Norbert Jurkeit <norbert.jurkeit@web.de> 2013-09-30 17:52:04 UTC --- Same for me. I noticed the issue immediately after installation from KDE live DVD 32bit Beta. I don't know what the installer used for building the initrd, but will be glad to check it if you give me a hint where to look. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c15 --- Comment #15 from Norbert Jurkeit <norbert.jurkeit@web.de> 2013-09-30 18:45:02 UTC --- (In reply to comment #12)
With mkinitrd and changing the CMSO local setting mkinitrd has to be called as well as the CMOS clock should be in localtime.
I just ran mkinitrd after turning off UTC in the Date and Time module of YaST, but this did not help. After reboot the displayed time had an offset from the hardware clock again (and also the check box for UTC was marked again in the YaST module). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c16 Jiří Suchomel <jsuchome@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #16 from Jiří Suchomel <jsuchome@suse.com> 2013-10-01 06:22:05 UTC --- It look like it _is_ YaST bug... probably did not save modified adjtime file... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c17 --- Comment #17 from Jiří Suchomel <jsuchome@suse.com> 2013-10-01 07:59:14 UTC --- Created an attachment (id=560974) --> (http://bugzilla.novell.com/attachment.cgi?id=560974) patch for Timezone.rb Please patch your Timezone.rb with this (using e.g. "patch /usr/share/YaST2/modules/Timezone.rb < this_attachement") and try calling yast2 timezone module again. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c Jiří Suchomel <jsuchome@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |smartinds@gmail.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c18 --- Comment #18 from Norbert Jurkeit <norbert.jurkeit@web.de> 2013-10-01 11:24:45 UTC --- The patch works for me. After applying it, the setting to local time is retained across reboot in displayed time as well as in the check box of the Date and Time module. Well done :-) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=841859 https://bugzilla.novell.com/show_bug.cgi?id=841859#c19 Jiří Suchomel <jsuchome@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|smartinds@gmail.com | Resolution| |FIXED --- Comment #19 from Jiří Suchomel <jsuchome@suse.com> 2013-10-01 12:31:08 UTC --- Fixed in yast2-country-3.0.2 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com