mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-02-17 07:33:57 +00:00
fix(calendar): Fix regression on calendar event modification. Start date was set to 1970. Fixes #5777.
This commit is contained in:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user