[winpr,timezone] fix dst bias

This commit is contained in:
akallabeth
2025-01-14 19:17:06 +01:00
parent e0ce33634f
commit df158b7e5c

View File

@@ -735,7 +735,7 @@ static int dynamic_time_zone_from_localtime(const struct tm* local_time,
{
/* DST bias is the difference between standard time and DST in minutes */
const LONG d = get_bias(local_time, TRUE);
tz->DaylightBias = -1 * (LONG)labs(tz->Bias - d);
tz->DaylightBias = -1 * (tz->Bias - d);
if (!get_transition_date(local_time, FALSE, &tz->StandardDate))
rc |= HAVE_NO_STANDARD_TRANSITION_DATE;
if (!get_transition_date(local_time, TRUE, &tz->DaylightDate))