DST problem in notes C API functions

Hi all!

I try to create date time and put it in the notes internal TIMEDATE structure, and and vice versa, all works fine except Dst fields:

TIME local_tm = {0};

local_tm.dst = 1; //true

TimeLocalToGM(&local_tm);

TimeGMToLocal(&local_tm);

local_tm.dst //local_tm.dst = 0 !!?!!? must be 1, wtf?

all others parameters (minutes, hours, year … ) converted correctly

is this a lotus bug?

Subject: Do you set local_tm.zone?

The DST flag is used in cooperation with the zone info as well to do the proper shift to/from GMT.

Without digging into the code it could also be that DST is not observed at the date/time you chose in the zone you picked/defaulted in so that could be why it got cleared.

Bruce

IBM