From aa85f515e25fe3d2d062c2cd671137ccb0ba5cc8 Mon Sep 17 00:00:00 2001 From: yury Date: Fri, 19 Aug 2016 16:37:13 +0000 Subject: [PATCH] * android: Added API level check for known old versions without timezone implementation in libc. git-svn-id: trunk@34350 - --- rtl/android/unixandroid.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtl/android/unixandroid.inc b/rtl/android/unixandroid.inc index 74a723dba7..a676665acb 100644 --- a/rtl/android/unixandroid.inc +++ b/rtl/android/unixandroid.inc @@ -126,7 +126,8 @@ end; procedure InitLocalTime; begin - ReadTimeZoneFromLibC; + if SystemApiLevel > 10 then + ReadTimeZoneFromLibC; // If cuurent Android version is too old and does not support timezone // in libc, use ICU library. if tzname[false] = nil then