From b68a215ea29807db688e2f9a46a4a8d0907f83b8 Mon Sep 17 00:00:00 2001 From: smizrahi Date: Thu, 1 Jun 2023 17:13:49 +0200 Subject: [PATCH] fix(calendar): Fix regression on calendar event modification. Start date was set to 1970. Fixes #5777. --- SOPE/GDLContentStore/GCSFolder.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SOPE/GDLContentStore/GCSFolder.m b/SOPE/GDLContentStore/GCSFolder.m index 8f7e1fe3a..84e86728d 100644 --- a/SOPE/GDLContentStore/GCSFolder.m +++ b/SOPE/GDLContentStore/GCSFolder.m @@ -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"];