glib: Update gtimezone.c patch after review
This commit is contained in:
parent
87da5b98dc
commit
1f277e186d
@ -18,20 +18,21 @@ diff -u -r ../glib-2.54.2/glib/gtimezone.c ./glib/gtimezone.c
|
||||
/**
|
||||
* SECTION:timezone
|
||||
* @title: GTimeZone
|
||||
@@ -392,7 +399,116 @@
|
||||
@@ -392,7 +399,117 @@
|
||||
gtz->transitions = NULL;
|
||||
}
|
||||
|
||||
-#ifdef G_OS_UNIX
|
||||
+#ifdef __ANDROID__
|
||||
+/* Android uses a 'persist.sys.timezone' system property for the
|
||||
+ current timezone instead of a /etc/localtime file:
|
||||
+ https://android.googlesource.com/platform/ndk/+/android-2.2_r1/docs/system/libc/OVERVIEW.TXT#67
|
||||
+
|
||||
+ There are no files under /usr/share/zoneinfo - instead a single
|
||||
+ /system/usr/share/zoneinfo/tzdata file is used which contains all
|
||||
+ files compiled together with the following tool:
|
||||
+ https://android.googlesource.com/platform/system/timezone/+/master/zone_compactor/main/java/ZoneCompactor.java */
|
||||
+ * current timezone instead of a /etc/localtime file:
|
||||
+ * https://android.googlesource.com/platform/ndk/+/android-2.2_r1/docs/system/libc/OVERVIEW.TXT#67
|
||||
+ *
|
||||
+ * There are no files under /usr/share/zoneinfo - instead a single
|
||||
+ * /system/usr/share/zoneinfo/tzdata file is used which contains all
|
||||
+ * files compiled together with the following tool:
|
||||
+ * https://android.googlesource.com/platform/system/timezone/+/master/zone_compactor/main/java/ZoneCompactor.java
|
||||
+ */
|
||||
+static GBytes *
|
||||
+zone_info_android (const gchar *identifier)
|
||||
+{
|
||||
|
Loading…
Reference in New Issue
Block a user