Skip to content

TzSpecificLocalTimeToSystemTime is not supported by Windows 2000 #33

@GoogleCodeExporter

Description

@GoogleCodeExporter
External function declared in ceflib "TzSpecificLocalTimeToSystemTime" is not 
supported by Windows 2000, so therefor "EOSError" will appear after running 
application exe.

Workaround is to comment external function declaration and use own function 
like this one:

function DateTimeToCefTime(dt: TDateTime): TCefTime;
var st1, st2: TSystemTime;
    tz: TTimeZoneInformation;
begin
  GetTimeZoneInformation(tz);
  tz.Bias := -tz.Bias;
  tz.StandardBias := -tz.StandardBias;
  tz.DaylightBias := -tz.DaylightBias;
  DateTimeToSystemTime(dt, st1);
  SystemTimeToTzSpecificLocalTime(@tz, @st1, @st2);
  Result := SystemTimeToCefTime(st2);
end;


Original issue reported on code.google.com by ilga...@gmail.com on 21 Sep 2011 at 9:08

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions