mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[winpr,timezone] fix dst bias
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user