(fix) better handle timezone changes (fixes #4624)

This commit is contained in:
Ludovic Marcotte
2018-12-20 13:37:59 -05:00
committed by leecher1337
parent 2cd21052bd
commit 896d14d8c0
2 changed files with 23 additions and 4 deletions
+22 -4
View File
@@ -83,10 +83,28 @@ struct SYSTEMTIME {
tzData->wDay = ([mask firstOccurrence] == -1) ? 5 : [mask firstOccurrence];
dateValue = [self startDate];
tzData->wHour = [dateValue hourOfDay];
tzData->wMinute = [dateValue minuteOfHour];
tzData->wSecond = [dateValue secondOfMinute];
tzData->wMilliseconds = 0;
if (![dateValue hourOfDay])
{
if ([mask firstDay]-1 < 0)
tzData->wDayOfWeek = 6;
else
tzData->wDayOfWeek = [mask firstDay]-1;
tzData->wHour = 23;
tzData->wMinute = 59;
tzData->wSecond = 59;
tzData->wMilliseconds = 999;
}
else
{
tzData->wDayOfWeek = [mask firstDay];
tzData->wHour = [dateValue hourOfDay];
tzData->wMinute = [dateValue minuteOfHour];
tzData->wSecond = [dateValue secondOfMinute];
tzData->wMilliseconds = 0;
}
}
}
+1
View File
@@ -6,6 +6,7 @@ Bug fixes
- [eas] fix search on for Outlook application (#4605 and #4607)
- [eas] better handle bogus DTStart values
- [eas] support for basic UserInformation queries (#4614)
- [eas] better handle timezone changes (#4624)
4.0.1 (2018-07-10)
------------------