From 158a5becc902b1d241575ac5098ceb527a0011ff Mon Sep 17 00:00:00 2001 From: smizrahi Date: Mon, 15 May 2023 20:07:11 +0200 Subject: [PATCH] fix(calendar): Fix Out of range value for column 'c_startdate' SQL error --- SOPE/GDLContentStore/GCSFolder.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SOPE/GDLContentStore/GCSFolder.m b/SOPE/GDLContentStore/GCSFolder.m index 733ebf025..37606e180 100644 --- a/SOPE/GDLContentStore/GCSFolder.m +++ b/SOPE/GDLContentStore/GCSFolder.m @@ -1147,7 +1147,7 @@ andAttribute: (EOAttribute *)_attribute if ([theComponent respondsToSelector:@selector(startDate)]) { startDate = [theComponent startDate]; if (startDate) { - [quickRow setObject:[NSNumber numberWithUnsignedInt:[startDate timeIntervalSince1970]] forKey:@"c_startdate"]; + [quickRow setObject:[NSNumber numberWithInt:[startDate timeIntervalSince1970]] forKey:@"c_startdate"]; } }