View Issue Details

IDProjectCategoryView StatusLast Update
0003308SOGoActiveSyncpublic2015-10-14 19:59
Reporterdaniel.colchete Assigned Toludovic  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionsuspended 
Platform[Client] AppleOSiOSOS Version7
Product Version2.3.1 
Summary0003308: Timezones on Task's due dates on iPhones
Description

When creating tasks on iPhones with due dates, the due date's timezone information is lost and the time that the user entered and changed to something different.

Steps To Reproduce

Create a Task called "Teste AA00AA" due at 2015/08/17 15:00 on a phone configured at the -03:00 timezone. Save it. Wait for the phone to save, sync and resync again. Your task will now be due at 12:00.

Additional Information

This is the EAS Debug logs:
Aug 17 10:35:14 sogod [8649]: <0x0x7f13f1545db0[SOGoActiveSyncDispatcher]> EAS - request for device ISKRTL8O6T34F9IC20MKHL6T24: <?xml version="1.0"?>
<!DOCTYPE ActiveSync PUBLIC "-//MICROSOFT//DTD ActiveSync//EN" "http://www.microsoft.com/&quot;>
<Sync xmlns="AirSync:">
<Collections>
<Collection>
<SyncKey>1439818418</SyncKey>
<CollectionId>vtodo%2Fpersonal</CollectionId>
<GetChanges/>
<WindowSize>25</WindowSize>
<Options>
<BodyPreference xmlns="AirSyncBase:">
<Type>1</Type>
<TruncationSize>32768</TruncationSize>
</BodyPreference>
</Options>
<Commands>
<Add>
<ClientId>165</ClientId>
<ApplicationData>
<Body xmlns="AirSyncBase:">
<Type>1</Type>
<Data/>
</Body>
<Subject xmlns="Tasks:">Teste AA00AA</Subject>
<Importance xmlns="Tasks:">1</Importance>
<Complete xmlns="Tasks:">0</Complete>
<Sensitivity xmlns="Tasks:">0</Sensitivity>
<ReminderSet xmlns="Tasks:">0</ReminderSet>
</ApplicationData>
</Add>
</Commands>
</Collection>
</Collections>
</Sync>

Aug 17 10:35:26 sogod [8649]: <0x0x7f13f1695d50[SOGoActiveSyncDispatcher]> EAS - request for device ISKRTL8O6T34F9IC20MKHL6T24: <?xml version="1.0"?>
<!DOCTYPE ActiveSync PUBLIC "-//MICROSOFT//DTD ActiveSync//EN" "http://www.microsoft.com/&quot;>
<Sync xmlns="AirSync:">
<Collections>
<Collection>
<SyncKey>1439818427</SyncKey>
<CollectionId>vtodo%2Fpersonal</CollectionId>
<GetChanges/>
<WindowSize>25</WindowSize>
<Options>
<BodyPreference xmlns="AirSyncBase:">
<Type>1</Type>
<TruncationSize>32768</TruncationSize>
</BodyPreference>
</Options>
<Commands>
<Change>
<ServerId>21C9-55D1E300-5-5DA8288.ics</ServerId>
<ApplicationData>
<Body xmlns="AirSyncBase:">
<Type>1</Type>
<Data/>
</Body>
<Subject xmlns="Tasks:">Teste AA00AA</Subject>
<Importance xmlns="Tasks:">1</Importance>
<UTCStartDate xmlns="Tasks:">2015-08-17T18:00:00.000Z</UTCStartDate>
<StartDate xmlns="Tasks:">2015-08-17T15:00:00.000Z</StartDate>
<UTCDueDate xmlns="Tasks:">2015-08-17T18:00:00.000Z</UTCDueDate>
<DueDate xmlns="Tasks:">2015-08-17T15:00:00.000Z</DueDate>
<Complete xmlns="Tasks:">0</Complete>
<Sensitivity xmlns="Tasks:">0</Sensitivity>
<ReminderTime xmlns="Tasks:">2015-08-17T18:00:00.000Z</ReminderTime>
<ReminderSet xmlns="Tasks:">1</ReminderSet>
</ApplicationData>
</Change>
</Commands>
</Collection>
</Collections>
</Sync>

Aug 17 10:35:26 sogod [8649]: <0x0x7f13f1695d50[SOGoActiveSyncDispatcher]> Change detected, we push the content.
Aug 17 10:35:26 sogod [8649]: <0x0x7f13f1695d50[SOGoActiveSyncDispatcher]> EAS - response for device ISKRTL8O6T34F9IC20MKHL6T24: <?xml version="1.0"?>
<!DOCTYPE ActiveSync PUBLIC "-//MICROSOFT//DTD ActiveSync//EN" "http://www.microsoft.com/&quot;>
<Sync xmlns="AirSync:">
<Collections>
<Collection>
<Class>Tasks</Class>
<SyncKey>1439818514</SyncKey>
<CollectionId>vtodo%2Fpersonal</CollectionId>
<Status>1</Status>
<Responses>
<Change>
<ServerId>21C9-55D1E300-5-5DA8288.ics</ServerId>
<Status>1</Status>
</Change>
</Responses>
<Commands>
<Change>
<ServerId>21C9-55D1E300-5-5DA8288.ics</ServerId>
<ApplicationData>
<Complete xmlns="Tasks:">0</Complete>
<Importance xmlns="Tasks:">1</Importance>
<ReminderSet xmlns="Tasks:">0</ReminderSet>
<Sensitivity xmlns="Tasks:">0</Sensitivity>
<Subject xmlns="Tasks:">Teste AA00AA</Subject>
<Body xmlns="AirSyncBase:">
<Type>1</Type>
<EstimatedDataSize>0</EstimatedDataSize>
<Data/>
</Body>
</ApplicationData>
</Change>
</Commands>
</Collection>
</Collections>
</Sync>

(...)
Aug 17 10:35:37 sogod [8648]: <0x0x7f13f195f850[SOGoActiveSyncDispatcher]> Change detected, we push the content.
Aug 17 10:35:37 sogod [8648]: <0x0x7f13f195f850[SOGoActiveSyncDispatcher]> EAS - response for device Appl5K33801NA4S: <?xml version="1.0"?>
<!DOCTYPE ActiveSync PUBLIC "-//MICROSOFT//DTD ActiveSync//EN" "http://www.microsoft.com/&quot;>
<Sync xmlns="AirSync:">
<Collections>
<Collection>
<Class>Tasks</Class>
<SyncKey>1439818526</SyncKey>
<CollectionId>vtodo%2Fpersonal</CollectionId>
<Status>1</Status>
<Commands>
<Add>
<ServerId>21C9-55D1E300-5-5DA8288.ics</ServerId>
<ApplicationData>
<Complete xmlns="Tasks:">0</Complete>
<StartDate xmlns="Tasks:">2015-08-17T15:00:00.000Z</StartDate>
<UTCStartDate xmlns="Tasks:">2015-08-17T15:00:00.000Z</UTCStartDate>
<DueDate xmlns="Tasks:">2015-08-17T15:00:00.000Z</DueDate>
<UTCDueDate xmlns="Tasks:">2015-08-17T15:00:00.000Z</UTCDueDate>
<Importance xmlns="Tasks:">1</Importance>
<ReminderSet xmlns="Tasks:">0</ReminderSet>
<Sensitivity xmlns="Tasks:">0</Sensitivity>
<Subject xmlns="Tasks:">Teste AA00AA</Subject>
<Body xmlns="AirSyncBase:">
<Type>1</Type>
<EstimatedDataSize>0</EstimatedDataSize>
<Data/>
</Body>
</ApplicationData>
</Add>
</Commands>
</Collection>
</Collections>
</Sync>

TagsNo tags attached.

Activities

daniel.colchete

daniel.colchete

2015-08-17 13:41

reporter   ~0008824

Last edited: 2015-08-17 13:41

Tested on iOS 7.1.2 and 8.4.1.

tfu

tfu

2015-08-20 21:49

reporter   ~0008838

The log messages you provided are somehow inconsistent:
ISKRTL8O6T34F9IC20MKHL6T24 request with syncKey 1439818418 > add
??? is there no response for above request ???

ISKRTL8O6T34F9IC20MKHL6T24 request with syncKey 1439818427 > change

ISKRTL8O6T34F9IC20MKHL6T24 response with syncKey 1439818514

Appl5K33801NA4S response with syncKey 1439818526
??? where is the request which generated above response ???

daniel.colchete

daniel.colchete

2015-08-25 13:18

reporter   ~0008853

Hi TFU!!!

So, I repeated my tests and got the full logs so that there are no mistakes: http://pastebin.com/LhtebJhT

daniel.colchete

daniel.colchete

2015-08-25 13:20

reporter   ~0008854

Maybe 0003310 could be causing this problem.

tfu

tfu

2015-08-26 21:39

reporter   ~0008860

I'm not able to reproduce the problem.
Maybe you see more when you set MySQL4DebugEnabled=YES.

daniel.colchete

daniel.colchete

2015-08-26 23:30

reporter   ~0008861

TFU, I'm trying to understand eveything here but, from what I could see sogo is writing down the wrong time on the MySQL database. The epoch 1440705600 is Thu Aug 27 17:00:00 BRT on my timezone. I tried changing timezones (from America/Sao_Paulo to Brazil/East) but it didn't made any difference.

So, sogod is reading the DueDate field as if it were UTCDueDate.

This bug will not happen if you are on the GMT timezone. Could you test changing your timezone to something else?

What do you think?

2015-08-26 20:21:36.858 sogod[11588] <MySQL4Channel[0x0x7fb3d53f5340] connection=0x0x7fb3d53f5a90> query has results, entering fetch-mode.
Aug 26 20:21:36 sogod [11588]: <0x0x7fb3d53c2830[SOGoActiveSyncDispatcher]> EAS - request for device ISKRTL8O6T34F9IC20MKHL6T24: <?xml version="1.0"?>
<!DOCTYPE ActiveSync PUBLIC "-//MICROSOFT//DTD ActiveSync//EN" "http://www.microsoft.com/&quot;>
<Sync xmlns="AirSync:">
<Collections>
<Collection>
<SyncKey>1440631222</SyncKey>
<CollectionId>vtodo%2Fpersonal</CollectionId>
<GetChanges/>
<WindowSize>25</WindowSize>
<Options>
<BodyPreference xmlns="AirSyncBase:">
<Type>1</Type>
<TruncationSize>32768</TruncationSize>
</BodyPreference>
</Options>
<Commands>
<Change>
<ServerId>2D44-55DE4A00-1-12E86B60.ics</ServerId>
<ApplicationData>
<Body xmlns="AirSyncBase:">
<Type>1</Type>
<Data/>
</Body>
<Subject xmlns="Tasks:">Teste AA11AA</Subject>
<Importance xmlns="Tasks:">1</Importance>
<UTCStartDate xmlns="Tasks:">2015-08-27T23:00:00.000Z</UTCStartDate>
<StartDate xmlns="Tasks:">2015-08-27T20:00:00.000Z</StartDate>
<UTCDueDate xmlns="Tasks:">2015-08-27T23:00:00.000Z</UTCDueDate>
<DueDate xmlns="Tasks:">2015-08-27T20:00:00.000Z</DueDate>
<Complete xmlns="Tasks:">0</Complete>
<Sensitivity xmlns="Tasks:">0</Sensitivity>
<ReminderTime xmlns="Tasks:">2015-08-27T23:00:00.000Z</ReminderTime>
<ReminderSet xmlns="Tasks:">1</ReminderSet>
</ApplicationData>
</Change>
</Commands>
</Collection>
</Collections>
</Sync>

(lots of selects)

2015-08-26 20:21:36.869 sogod[11588] <MySQL4Channel[0x0x7fb3d4e363d0] connection=0x0x7fb3d4e55210> SQL: UPDATE sogodanielte00172fcfe25_quick SET c_description = '', c_partstates = '', c_orgmail = '', c_uid = '2D44-55DE4A00-3-12E86B60', c_sequence = 0, c_nextalarm = 0, c_title = 'Teste AA11AA', c_classification = 0, c_location = '', c_name = '2D44-55DE4A00-1-12E86B60.ics', c_component = 'vtodo', c_iscycle = 0, c_enddate = 1440705600, c_priority = 5, c_status = 2, c_isopaque = 0, c_startdate = 1440705600, c_isallday = 0 WHERE c_name = '2D44-55DE4A00-1-12E86B60.ics';
2015-08-26 20:21:36.869 sogod[11588] <MySQL4Channel[0x0x7fb3d4e363d0] connection=0x0x7fb3d4e55210> query has no results.
2015-08-26 20:21:36.869 sogod[11588] <MySQL4Channel[0x0x7fb3d53f5340] connection=0x0x7fb3d53f5a90> SQL: UPDATE sogodanielte00172fcfe25 SET c_lastmodified = 1440631296, c_name = '2D44-55DE4A00-1-12E86B60.ics', c_version = 1, c_content = 'BEGIN:VCALENDAR
PRODID:-//Inverse inc./SOGo 2.3.1//EN
VERSION:2.0
BEGIN:VTODO
UID:2D44-55DE4A00-3-12E86B60
SUMMARY:Teste AA11AA
STATUS:IN-PROCESS
PRIORITY:5
CLASS:PUBLIC
DUE;:20150827T200000Z
DTSTART;:20150827T200000Z
END:VTODO
END:VCALENDAR' WHERE c_name = '2D44-55DE4A00-1-12E86B60.ics';
2015-08-26 20:21:36.870 sogod[11588] <MySQL4Channel[0x0x7fb3d53f5340] connection=0x0x7fb3d53f5a90> query has no results.
2015-08-26 20:21:36.870 sogod[11588] <MySQL4Channel[0x0x7fb3d53f5340] connection=0x0x7fb3d53f5a90> SQL: COMMIT;
2015-08-26 20:21:36.872 sogod[11588] <MySQL4Channel[0x0x7fb3d53f5340] connection=0x0x7fb3d53f5a90> query has no results.
2015-08-26 20:21:36.872 sogod[11588] <MySQL4Channel[0x0x7fb3d4e363d0] connection=0x0x7fb3d4e55210> SQL: COMMIT;
2015-08-26 20:21:36.874 sogod[11588] <MySQL4Channel[0x0x7fb3d4e363d0] connection=0x0x7fb3d4e55210> query has no results.

tfu

tfu

2015-08-27 14:34

reporter   ~0008864

I think what you provided above is correct:
DUE;:20150827T200000Z (UTC) -> 17:00 BRT

UTCStartDate is NOT read when parsing the EAS-requests.

Let's first have a look into bug 3310 ... and than come back to this one.

ludovic

ludovic

2015-10-14 19:59

reporter   ~0009004

3310 was suspended - lets make sure you try the upcoming nightly builds before reopening any of these issues if you still have them.

Thanks!

Issue History

Date Modified Username Field Change
2015-08-17 13:41 daniel.colchete New Issue
2015-08-17 13:41 daniel.colchete Note Added: 0008824
2015-08-17 13:41 daniel.colchete Note Edited: 0008824
2015-08-20 21:49 tfu Note Added: 0008838
2015-08-25 13:18 daniel.colchete Note Added: 0008853
2015-08-25 13:20 daniel.colchete Note Added: 0008854
2015-08-26 21:39 tfu Note Added: 0008860
2015-08-26 23:30 daniel.colchete Note Added: 0008861
2015-08-27 14:34 tfu Note Added: 0008864
2015-10-14 19:59 ludovic Note Added: 0009004
2015-10-14 19:59 ludovic Status new => closed
2015-10-14 19:59 ludovic Assigned To => ludovic
2015-10-14 19:59 ludovic Resolution open => suspended