Author Topic: Wrong date when syncing Exchange recurring appointments  (Read 22993 times)

jupi24

  • Newbie
  • *
  • Posts: 1
Wrong date when syncing Exchange recurring appointments
« on: June 24, 2016, 09:45:41 am »
I created a recurring appointment in Outlook/Exchange that lasts a day and repeats every year (birthday).
AquaMail syncs that appointment one day later than entered. I rechecked the date by calling the OWA web interface of our Exchange server. Here the appointment is shown at it's correct date. So I think it's Aquamail that's faulty.
Test multiply repeated. Android 4.4 and 6.01 behaves the same. Aquamail version is 1.6.1.5.
See attached files.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wrong date when syncing Exchange recurring appointments
« Reply #1 on: June 24, 2016, 08:33:41 pm »
Please update to 1.6.2 -- the current is 1.6.2.5 -- there have been some fixes.

Then use web mail or Outlook to change something about the appointment (the color should be enough) and "refresh" in your Calendar app.

If the issue remains, please capture the issue in the app's debug log (see below). With the log enabled, repeat the above steps then send me the log file so I can see the app's communication with the Exchange server.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

mkdee

  • Newbie
  • *
  • Posts: 11
Re: Wrong date when syncing Exchange recurring appointments
« Reply #2 on: March 15, 2017, 02:14:36 am »
Please update to 1.6.2 -- the current is 1.6.2.5 -- there have been some fixes.

Then use web mail or Outlook to change something about the appointment (the color should be enough) and "refresh" in your Calendar app.

If the issue remains, please capture the issue in the app's debug log (see below). With the log enabled, repeat the above steps then send me the log file so I can see the app's communication with the Exchange server.
I'm running the latest version of AquaMail and have a calendar bug.

The issue is that certain calendar events imported from Exchange are appearing on the following day.

This is only happening to one event.  All other events are fine.  (Yes I have tried resyncing the calendar)

Looking at the iCal files of events that sync correctly and those that don't, I notice that the event that doesn't sync has a empty TZID, whereas the correct events have a TZID.  Both events have TZOFFSETs.

Sent from my SM-G920F using Tapatalk


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wrong date when syncing Exchange recurring appointments
« Reply #3 on: March 17, 2017, 07:22:48 pm »
If an event doesn't have a TZID, then what happens to the actual time zone is "murky" --

-- Aqua Mail has some "fallback" logic but so does Exchange (when syncing calendar events in an Exchange account, the app doesn't get original ICAL data, rather it gets Exchange's already parsed representation of that).

If you wish to pursue it, please:

- Check how the event shows in Exchange web mail / calendar

- If it's what you expect it to be, then:

- Please enable Aqua Mail's debug log including "raw session data" (a link to instructions is below in my signature).

- Use web mail / calendar to change the event's color / category

- Back to Android, in the Calendar app, Menu -> Refresh (or Sync, etc.), let it finish, make sure the event's color does update (meaning that Aqua Mail processed the change)

- Send the debug log to support / at / aqua-mail / dot com, and please let us know the *expected* (correct) date/time of the event.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

mkdee

  • Newbie
  • *
  • Posts: 11
Re: Wrong date when syncing Exchange recurring appointments
« Reply #4 on: April 01, 2017, 11:06:02 pm »
If an event doesn't have a TZID, then what happens to the actual time zone is "murky" --

-- Aqua Mail has some "fallback" logic but so does Exchange (when syncing calendar events in an Exchange account, the app doesn't get original ICAL data, rather it gets Exchange's already parsed representation of that).

If you wish to pursue it, please:

- Check how the event shows in Exchange web mail / calendar

- If it's what you expect it to be, then:

- Please enable Aqua Mail's debug log including "raw session data" (a link to instructions is below in my signature).

- Use web mail / calendar to change the event's color / category

- Back to Android, in the Calendar app, Menu -> Refresh (or Sync, etc.), let it finish, make sure the event's color does update (meaning that Aqua Mail processed the change)

- Send the debug log to support / at / aqua-mail / dot com, and please let us know the *expected* (correct) date/time of the event.
How are you guys going with this issue?

Sent from my SM-G920F using Tapatalk


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wrong date when syncing Exchange recurring appointments
« Reply #5 on: April 02, 2017, 01:17:32 pm »
Re: How are you guys going with this issue?

Did you collect / send a debug log for this?
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

mkdee

  • Newbie
  • *
  • Posts: 11
Re: Wrong date when syncing Exchange recurring appointments
« Reply #6 on: April 02, 2017, 10:45:17 pm »
Re: How are you guys going with this issue?

Did you collect / send a debug log for this?
It was sent on the 18th March.  If you asking it sounds it was like not received or lost in the plethora of emails.  I have resent the log.  Cheers

Sent from my SM-G920F using Tapatalk


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wrong date when syncing Exchange recurring appointments
« Reply #7 on: April 04, 2017, 10:33:11 pm »
Re: It was sent on the 18th March.  If you asking it sounds it was like not received or lost in the plethora of emails.  I have resent the log.  Cheers

Got it last night and sent you a new build with a workaround.

The server is reporting this event as being in the UTC time zone -- and since UTC doesn't have daylight savings, this recurring event that spans the daylight savings turning on / off is going to be off by one hour for half the year.

The workaround was to (still) properly match the "deleted instances" / "updated instances" which until then Android wasn't able to do: for some reason the server is still reporting those (the instances) based on the proper time zone, so they are shifted by one hour vs. what Android expects (based on the UTC time zone of the "master" recurring event).

I can't fix the real underlying issue - the server says the event is in the UTC time zone, the app has no reason or way to second-guess that.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

mkdee

  • Newbie
  • *
  • Posts: 11
Re: Wrong date when syncing Exchange recurring appointments
« Reply #8 on: April 19, 2017, 09:01:08 am »
Re: It was sent on the 18th March.  If you asking it sounds it was like not received or lost in the plethora of emails.  I have resent the log.  Cheers

Got it last night and sent you a new build with a workaround.

The server is reporting this event as being in the UTC time zone -- and since UTC doesn't have daylight savings, this recurring event that spans the daylight savings turning on / off is going to be off by one hour for half the year.

The workaround was to (still) properly match the "deleted instances" / "updated instances" which until then Android wasn't able to do: for some reason the server is still reporting those (the instances) based on the proper time zone, so they are shifted by one hour vs. what Android expects (based on the UTC time zone of the "master" recurring event).

I can't fix the real underlying issue - the server says the event is in the UTC time zone, the app has no reason or way to second-guess that.
Kostya, please let me know if you need any more info.  As requested I havr provided you with a log on 12th April.

Sent from my SM-G920F using Tapatalk


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wrong date when syncing Exchange recurring appointments
« Reply #9 on: April 21, 2017, 10:23:33 pm »
Re: Kostya, please let me know if you need any more info.  As requested I havr provided you with a log on 12th April.

I've seen it and did respond.

In short, I did not find any evidence for an Aqua Mail bug.

The app stored your event's data as expected - start date, a simple recurrence pattern, a few deleted instances.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

mkdee

  • Newbie
  • *
  • Posts: 11
Re: Wrong date when syncing Exchange recurring appointments
« Reply #10 on: April 22, 2017, 01:30:35 am »
Re: Kostya, please let me know if you need any more info.  As requested I havr provided you with a log on 12th April.

I've seen it and did respond.

In short, I did not find any evidence for an Aqua Mail bug.

The app stored your event's data as expected - start date, a simple recurrence pattern, a few deleted instances.
Here's some more details:
- Outlook app on Andriod correctly shows the appointment in their Calendar.  Outlook doesn't sync with Google's Calendar.
- Blue Mail, correctly syncs the appointment in Google's Calendar.  (Actually Blue Mail overall is quite good)
- 9 mail Also correctly syncs the appointment with Google Calendar.
- AquaMail meanwhile incorrectly shows the core reoccuring appointment, putting it on at the right time but on the following day.  Deleted and new/moved app

From a corporate/business perspective there is nothing more frustrating.

Sent from my SM-G920F using Tapatalk


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wrong date when syncing Exchange recurring appointments
« Reply #11 on: April 23, 2017, 04:19:36 pm »
In your log I was able to see the data which Aqua Mail stored into the Android calendar. I did not see anything wrong with it.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

mkdee

  • Newbie
  • *
  • Posts: 11
Re: Wrong date when syncing Exchange recurring appointments
« Reply #12 on: May 01, 2017, 08:52:05 am »
Happy to show you the issue.  Pretty clear to me.   What details would you require to convince you that this is an issue?

Sent from my SM-G920F using Tapatalk


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wrong date when syncing Exchange recurring appointments
« Reply #13 on: May 02, 2017, 08:23:30 pm »
I'm not saying that the issue does not exist.

I'm saying that I've seen your log, looked at actual data that Aqua Mail stored into the Android Calendar and did not see anything wrong with it.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Wrong date when syncing Exchange recurring appointments
« Reply #14 on: May 02, 2017, 09:48:37 pm »
I just looked at the log again.

The event's time zone on the server is UTC - and you're in UTC+10. This moves the event to next day.

There is evidence (in the event's description) that the event's sender is aware that UTC is a problem and sends updates "to adjust for seasonal time changes across the offices".

Had the event's time zone on the server been correct (your actual time zone) to begin with -- none of those "adjustments" would have been necessary, it would have just worked.

There is no Aqua Mail bug here.

Garbage in (wrong time zone) -> garbage out.
Creating debug logs for diagnostics: https://www.aqua-mail.com/troubleshooting/

The official FAQ: https://www.aqua-mail.com/faq/

Лог-файлы для диагностики: https://www.aqua-mail.com/ru/troubleshooting/

Вопросы и ответы: https://www.aqua-mail.com/ru/faq/