Why GetDateTimeDecode() does not return milliseconds like DecodeDateTime()? lazarus / 43-Android ---------------------------------------------------------------------- Atak_Snajpera · 2022-01-16 20:02 As I workaround I've created this function because Now() on Android device returns greenwich time (UTC+0) instead of my local time zone (UTC+1). Do you know more elegant way of dealing with this issue? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i function DateTimeNow():TDateTime;var Day,Month,Year,H,M,S,MS:integer;    _Day,_Month,_Year,_H,_M,_S,_MS:Word;    MilliSecDiff:int64;    DateTimeUTC,DateTimeCurrentZone:TDateTime;begin      DecodeDateTime(Now,_Year,_Month,_Day,_H,_M,_S,_MS);     DateTimeUTC:=EncodeDateTime(_Year,_Month,_Day,_H,_M,_S,0);      form1.GetDateTimeDecode(Day,Month,Year,H,M,S);     DateTimeCurrentZone:=EncodeDateTime(Year,Month,Day,H,M,S,0);      MilliSecDiff:=MilliSecondsBetween(DateTimeUTC,DateTimeCurrentZone);      if DateTimeCurrentZone nil then    begin      tzdaylight:=tt^.tm_isdst <> 0;      tzseconds:=tt^.tm_gmtoff;      ReadTimeZoneFromLibC:=tzname[false] <> nil;    end;end;