[Bug 783853] New: system time keeps switching back to utc even after set to other timezone
https://bugzilla.novell.com/show_bug.cgi?id=783853 https://bugzilla.novell.com/show_bug.cgi?id=783853#c0 Summary: system time keeps switching back to utc even after set to other timezone Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: i686 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: ruchir.brahmbhatt@ecosmob.com QAContact: jsrain@suse.com Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4 Since recent timezone update, my system time keeps going back to UTC although I have set IST timezone and hardware clock is not set to UTC. Every time system boots, I have to manually adjust time from yast. Reproducible: Always Steps to Reproduce: 1. Set timezone to IST & hardware clock set to utc unchecked from yast. 2. Reboot Actual Results: Time changes to UTC on reboot. Expected Results: Time changes survive reboot. -- 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=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c1
Christian Boltz
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c2
Ruchir Brahmbhatt
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c3
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c4
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c5
Jiří Suchomel
If you know switch back to UTC as reference in CMOS then YaST2-country should correct /etc/adjtime first, run mkinitrd and then hwclock to be sure that both the CMOS and the kernels system time is correct after *next* boot.
How should YaST2 country correct /etc/adjtime? YaST only saves LOCAL/UTC to adjtime, based on the info given by user in the UI. And it runs mkinitrd when user changes this settings. As this seems to happened after "recent timezone update", is it likely that timezone package forgot to call 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=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c6
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c8
Dirk Weißnich
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c9
--- Comment #9 from Dirk Weißnich
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c10
--- Comment #10 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c11
--- Comment #11 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c12
--- Comment #12 from Dirk Weißnich
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c13
--- Comment #13 from Dirk Weißnich
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c14
--- Comment #14 from Dirk Weißnich
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c15
--- Comment #15 from Dirk Weißnich
Another thing is that the number in the drift file /var/lib/ntp/drift/ntp.drift increases strangely high. On 15. Oct it shows approx. 1.5, today it shows 4.323, but with openSUSE 12.1 it was always around 0.5 on the same hardware.
Forget about this part of my comment. Playing around with the clock could have this effect ;-) -- 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=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c16
Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c17
Jiří Suchomel
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c18
--- Comment #18 from Dirk Weißnich
There is special ocasion, when "/sbin/hwclock --systohc" is called, but this is only when current (system) time was directly synchronized from NTP.
Do you mean the option in YaST where you can choose to change date and time manually or via NTP? Then it definitely does not work, cause there I tried it already. The system time is set correctly but the CMOS/BIOS time isn't change with this option. -- 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=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c19
--- Comment #19 from Jiří Suchomel
Do you mean the option in YaST where you can choose to change date and time manually or via NTP? Then it definitely does not work, cause there I tried it already.
We can look into YaST logs if you have them, this situation should be logged. -- 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=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c20
--- Comment #20 from Dirk Weißnich
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c21
--- Comment #21 from Dirk Weißnich
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c22
--- Comment #22 from Dirk Weißnich
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c23
--- Comment #23 from Jiří Suchomel
Hi Jiri,
I attached 2 Parts of the YaST-Log. I bootet the machine with BIOS time set to UTC. Then I changed to local time via YaST
This seems to be wrong. YaST is not intended to change the time format you hold in BIOS. It actually tells the system, what you have there. So if you know BIOS uses UTC, set UTC in YaST. If (and only if) you know there's local time in BIOS, set Local time in YaST. -- 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=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c24
--- Comment #24 from Dirk Weißnich
(In reply to comment #22)
So if you know BIOS uses UTC, set UTC in YaST. If (and only if) you know there's local time in BIOS, set Local time in YaST.
This is how I set it up since Suse 10 ;) So please try by your self: I presume your BIOS is set to UTC: 1. After boot login to KDE (I have 4.9.2 x86_64) 2. Start YaST and change to local time, you will see the change immediately in the clock field next to the checkbox 3. Don't adjust the clock just save 4. Shutdown the PC 5. Boot and go into your BIOS and set the clock to your local time 6. Save the BIOS and boot normally 7. Login to KDE and you will see the correct time 8. Now reboot 9. Login to KDE and you will see the wrong time (UTC not local time anymore) 10. Reboot and look into the BIOS - something has changed your BIOS time back to UTC, somewhere between point 7 and 9 -- 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=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c25
--- Comment #25 from Dirk Weißnich
From now on it seems that local time is working.
And now for the final action that mess up everything again: 10. Start YaST and open Date and Time settings 11. Click on change (next to the time) 12. Activate NTP (on my system it was already activated) 13. Click "Synchronize Now" 14. Save and close YaST 15. reboot 16. The Time is wrong again For me it seems that the "Synchronize Now" - action does not respect the time zone settings and always synch to UTC and ALSO change the BIOS Clock, cause after a reboot i checked and the BIOS time was set back to UTC. Cheers Dirk -- 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=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c26
--- Comment #26 from Dr. Werner Fink
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c27
--- Comment #27 from Dirk Weißnich
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c28
--- Comment #28 from Dirk Weißnich
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c29
Wolfgang Bauer
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c30
--- Comment #30 from Dirk Weißnich
I think this is a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=791106
Could you please try the workaround listed there? (NTPD_FORCE_SYNC_ON_STARTUP can be found in /etc/sysconfig/ntp)
Thanks a lot for this hint! It seems to work, at least for two days now :-) And it proves my guess was right - there is a bug with "sntp". I wonder why the guys from Suse doesn't acknowledge this bug. Let's see 12.3 is on the way... But again thanks and a Happy New Year Cheers Dirk -- 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=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c31
--- Comment #31 from Wolfgang Bauer
https://bugzilla.novell.com/show_bug.cgi?id=783853
https://bugzilla.novell.com/show_bug.cgi?id=783853#c32
--- Comment #32 from Dirk Weißnich
Well, in the meantime there is an online update in progress for bnc#791106!
So I guess this bug can be closed.
Now there's only bnc#791485 left to be fixed regarding localtime I think. ;-)
Thanks for the info. I just installed the updated NTP-Package, and it worked as it should now. Perfect! :-)) Cheers Dirk -- 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