2
0
Эх сурвалжийг харах

* android: Added API level check for known old versions without timezone implementation in libc.

git-svn-id: trunk@34350 -
yury 9 жил өмнө
parent
commit
aa85f515e2

+ 2 - 1
rtl/android/unixandroid.inc

@@ -126,7 +126,8 @@ end;
 
 
 procedure InitLocalTime;
 procedure InitLocalTime;
 begin
 begin
-  ReadTimeZoneFromLibC;
+  if SystemApiLevel > 10 then
+    ReadTimeZoneFromLibC;
   // If cuurent Android version is too old and does not support timezone
   // If cuurent Android version is too old and does not support timezone
   // in libc, use ICU library.
   // in libc, use ICU library.
   if tzname[false] = nil then
   if tzname[false] = nil then