After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 699281 - express: Correctly set timezone configuration
express: Correctly set timezone configuration
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: installer
unspecified
Other All
: Normal normal
: 3.22
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-04-30 02:40 UTC by Zeeshan Ali
Modified: 2016-03-31 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
express: Correctly set timezone configuration (4.45 KB, patch)
2013-04-30 02:40 UTC, Zeeshan Ali
committed Details | Review
util: More error handling in get_timezone_from_linux() (1.47 KB, patch)
2013-05-02 15:06 UTC, Zeeshan Ali
committed Details | Review

Description Zeeshan Ali 2013-04-30 02:40:02 UTC
See patch.
Comment 1 Zeeshan Ali 2013-04-30 02:40:03 UTC
Created attachment 242878 [details] [review]
express: Correctly set timezone configuration

The libosinfo API expects a standard timezone string rather than
abbreviations (e.g 'Europe/Helsinki' rather than 'EET') but glib API we
use can only give us abbreviations. This patch fixes the issue by
fetching the timezone string directly from the system.

This issue had so far not been noticed because currently libosinfo sets
timezone for only Fedora and up until Fedora 19, Fedora has been
silently ignoring invalid timezone string we have been providing it. In
Fedora 19 however, express installation breaks: Installation stops with
an error and user is expected to set a valid timezone.
Comment 2 Christophe Fergeau 2013-04-30 10:04:13 UTC
Review of attachment 242878 [details] [review]:

Bleh, complicated :(

::: src/util-app.vala
@@ +483,3 @@
+        } catch (GLib.Error e) {
+            // A system without systemd. :( Lets try the hack'ish way.
+            debug ("Failed to get timezone from systemd.");

I'd add e.message to the debug
Comment 3 Zeeshan Ali 2013-04-30 13:01:38 UTC
Attachment 242878 [details] pushed as e388b83 - express: Correctly set timezone configuration
Comment 4 Zeeshan Ali 2013-05-02 15:06:05 UTC
Created attachment 243065 [details] [review]
util: More error handling in get_timezone_from_linux()

Catch a two more errors, separately.
Comment 5 Zeeshan Ali 2013-05-02 19:04:38 UTC
Comment on attachment 243065 [details] [review]
util: More error handling in get_timezone_from_linux()

Attachment 243065 [details] pushed as dc700ac - util: More error handling in get_timezone_from_linux()