[Bug 1848969] Re: src/date-time.cpp:171:GDateTime* unity::indicator::datetime::DateTime::get() const: assertion failed: (m_dt)

Benjamin Drung 1848969 at bugs.launchpad.net
Sat Jun 20 23:47:30 UTC 2020


Correction: Applying following patch does not solve this assertion
failure:

diff --git a/src/engine-eds.cpp b/src/engine-eds.cpp
index 153a9ea..8e2674f 100644
--- a/src/engine-eds.cpp
+++ b/src/engine-eds.cpp
@@ -879,6 +879,11 @@ private:
         if (tzid == nullptr)
             return nullptr;
 
+        // Workaround: Etc/Utc is not known to i_cal_timezone_get_builtin_timezone_from_tzid/i_cal_timezone_get_builtin_timezone
+        if (strcmp("Etc/Utc", tzid) == 0) {
+            return g_time_zone_new("Z");
+        }
+
         auto itz = i_cal_timezone_get_builtin_timezone_from_tzid(tzid); // usually works
 
         if (itz == nullptr) // fallback

-- 
You received this bug notification because you are a member of Indicator
Applet Developers, which is subscribed to indicator-datetime in Ubuntu.
https://bugs.launchpad.net/bugs/1848969

Title:
  src/date-time.cpp:171:GDateTime*
  unity::indicator::datetime::DateTime::get() const: assertion failed:
  (m_dt)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/indicator-datetime/+bug/1848969/+subscriptions



More information about the Ubuntu-reviews mailing list