GetEffectiveDateString is bugged?

From: Paolo (Paolo_at_discussions.microsoft.com)
Date: 07/22/04


Date: Thu, 22 Jul 2004 01:47:02 -0700

I try to get the validity date of a certificate with GetEffectiveDateString.
It doesn't return the same dates as the
certificate viewer included in Windows but it returns a right date but with a wrong time.
My pc is located in Italy with +1 GMT and daylight saving time.
The certficate viewer in Win reports:
21/07/2004 03.27.27 PM
GetEffectiveDateString reports:
21/07/2004 05.27.27 AM

Why? Pecche'?
Thx a lot.
Paolo