From kde-core-devel Sun Feb 03 04:30:14 2013 From: "Kevin Kofler" Date: Sun, 03 Feb 2013 04:30:14 +0000 To: kde-core-devel Subject: Review Request 108727: ktimezoned: Watch /etc/localtime if it doesn't exist yet. Message-Id: <20130203043014.21443.82201 () vidsolbach ! de> X-MARC-Message: https://marc.info/?l=kde-core-devel&m=135986585131642 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============2634776913822144305==" --===============2634776913822144305== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/108727/ ----------------------------------------------------------- Review request for KDE Runtime and David Jarvie. Description ------- /etc/localtime legitimately might not exist. The default is then UTC. But the file can then be created later, so watch for its creation. If we don't do this, when setting the time zone for the first time using kcm_clock, the initially set time zone will fail to get reloaded and the dialog will unexpectedly jump back to UTC. This problem shows up on Fedora 18, see: https://bugzilla.redhat.com/show_bug.cgi?id=906972 Please note that to test the fix with kcm_clock, you also need the kcm_clock (kde-workspace) fix from: https://git.reviewboard.kde.org/r/108711/ (which is already approved and which I'll push to KDE/4.10 and merge to master as soon as the 4.10.0 tagging freeze is lifted). Diffs ----- ktimezoned/ktimezoned.cpp 4eafa4e Diff: http://git.reviewboard.kde.org/r/108727/diff/ Testing ------- Builds against at least 4.10.0 and 4.9.5. Works at runtime (and appears to fix the bug): https://bugzilla.redhat.com/show_bug.cgi?id=906972#c5 Thanks, Kevin Kofler --===============2634776913822144305== Content-Type: text/html; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit
This is an automatically generated e-mail. To reply, visit: http://git.reviewboard.kde.org/r/108727/

Review request for KDE Runtime and David Jarvie.
By Kevin Kofler.

Description

/etc/localtime legitimately might not exist. The default is then UTC. But the file can then be created later, so watch for its creation.

If we don't do this, when setting the time zone for the first time using kcm_clock, the initially set time zone will fail to get reloaded and the dialog will unexpectedly jump back to UTC.

This problem shows up on Fedora 18, see:
https://bugzilla.redhat.com/show_bug.cgi?id=906972

Please note that to test the fix with kcm_clock, you also need the kcm_clock (kde-workspace) fix from:
https://git.reviewboard.kde.org/r/108711/
(which is already approved and which I'll push to KDE/4.10 and merge to master as soon as the 4.10.0 tagging freeze is lifted).

Testing

Builds against at least 4.10.0 and 4.9.5.

Works at runtime (and appears to fix the bug): https://bugzilla.redhat.com/show_bug.cgi?id=906972#c5

Diffs

  • ktimezoned/ktimezoned.cpp (4eafa4e)

View Diff

--===============2634776913822144305==--