svn path=/trunk/; revision=42428
struct tm *ptm2;
__time64_t time;
int mons, years, leapyears;
struct tm *ptm2;
__time64_t time;
int mons, years, leapyears;
+ TIME_ZONE_INFORMATION tzi;
+ DWORD ret;
/* Normalize year and month */
if (ptm->tm_mon < 0)
/* Normalize year and month */
if (ptm->tm_mon < 0)
*ptm = *ptm2;
/* Finally adjust by the difference to GMT in seconds */
*ptm = *ptm2;
/* Finally adjust by the difference to GMT in seconds */
+ ret = GetTimeZoneInformation(&tzi);
+ if (ret != TIME_ZONE_ID_INVALID)
+ {
+ time += tzi.Bias * 60;
+ }