Hi,

I wont ask you why do you use such a sophisticated way to calculate a current time instead of calling CTime functions.

BUT:
Check out "tm" structure
specifically:
tm.tm_isdst

"Positive value if daylight saving time is in effect; 0 if daylight saving time is not in effect; negative value if status of daylight saving time is unknown. The C run-time library assumes the United States’s rules for implementing the calculation of Daylight Saving Time (DST). "
MS MSDN

i.e. called with localtime() or gmtime()

only hope this works... you never know before you try it.

regards
Rem