fix(calendar): Fix regression on calendar event modification. Start date was set to 1970. Fixes #5777.

This commit is contained in:
smizrahi
2023-06-01 17:13:49 +02:00
parent e87d511e79
commit b68a215ea2

View File

@@ -1145,9 +1145,9 @@ andAttribute: (EOAttribute *)_attribute
{
// Update c_startdate for appointments
if ([theComponent respondsToSelector:@selector(startDate)]) {
NSTimeInterval t = [startDate timeIntervalSince1970];
NSTimeInterval t;
startDate = [theComponent startDate];
t = [startDate timeIntervalSince1970];
if (startDate) {
if (t < (long long)INT_MAX && t > (long long)INT_MIN)
[quickRow setObject:[NSNumber numberWithInt: t] forKey:@"c_startdate"];