Author Topic: Time zone not correct for recurring appts  (Read 5557 times)

ddcunderground4582

  • Newbie
  • *
  • Posts: 7
Time zone not correct for recurring appts
« on: March 23, 2017, 07:53:08 pm »
Arizona does not have time zone change and since the daylight savings time, certain events are showing the incorrect time. I have added the exchange account to my google email client and to the google calendar app to display the issue via screenshot as well. I have included a text file with a link to the zip file. A screenshot in the zip file shows the same event twice the dark blue @ 8 AM is through google mail and is the correct time and the light blue is through aqua-mail and is one hour late. I have also included the debug logs in the zip file. It appears to be only recurring appts but I could be wrong. Also during the debug, I removed the calendar sync option on the exchange account then synced the account then readded the calendar sync and synced the account I hope that will provide the information you need. This issue only started after DST. 

KieSeyHow

  • Jr. Member
  • **
  • Posts: 56
Re: Time zone not correct for recurring appts
« Reply #1 on: March 23, 2017, 10:54:39 pm »
The timezone has never been correct on my Samsung SM-P900.  It has always been off by one hour.  I live in EST -05, which seems to be -04 in Android.  This would be a device or Android issue, not AquaMail.

Sent from my SM-P900 using Tapatalk


ddcunderground4582

  • Newbie
  • *
  • Posts: 7
Re: Time zone not correct for recurring appts
« Reply #2 on: March 24, 2017, 02:23:23 am »
There are correct items for events and frankly all email items are the correct time. Events are displayed in the screen shot. So I tend to not believe that it is a device issue to be correct as that doesn't seem to follow a logical thought process. And  isn't -4 EDT ?

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Time zone not correct for recurring appts
« Reply #3 on: March 24, 2017, 05:25:24 am »
The timezone has never been correct on my Samsung SM-P900.  It has always been off by one hour.  I live in EST -05, which seems to be -04 in Android. 
And  isn't -4 EDT ?
You are both right:
EDT = UTC - 4
EST = UTC - 5
East Coast timezone with DST (e.g. in NYC),  is called EST5EDT (in Unix, Unix-like and some other systems)

KieSeyHow

  • Jr. Member
  • **
  • Posts: 56
Re: Time zone not correct for recurring appts
« Reply #4 on: March 24, 2017, 06:04:03 am »
I have tried to select something else many times, and only -4 works, yet I clearly live in -5-EST  But on my Andrid device to match EST is marked as -04, so I have to select -4 (which is marked as EST) in Android 5, at least on my Samsung SM-P900 it is.  Someone somewhere screwed up.  So, it no matter what we "believe" the time is incorrect if I select -5.

Sent from my SM-P900 using Tapatalk


ddcunderground4582

  • Newbie
  • *
  • Posts: 7
Re: Time zone not correct for recurring appts
« Reply #5 on: March 24, 2017, 07:03:08 am »
I am sorry to hear you are having issues with your timezones that sucks as well. As this seems to be a slightly different issue hopefully when this one is resolved it will resolve yours too. I am using a Galaxy S7 edge SM G935T  Android version 7.0

StR

  • Hero Member
  • *****
  • Posts: 1558
Re: Time zone not correct for recurring appts
« Reply #6 on: March 24, 2017, 03:29:42 pm »
@KieSeyHow: have you tried to set it to "automatic time zone"?

I usually use "Automatic time zone (Use network-provided time zone)". That works in the US (I have VZW).

I remember that at some point I had problems with that while traveling to Europe. I believe it was not receiving the TZ information from the provider (probably because of roaming on GSM), so, I had to set it manually. It was in the summer after some changes with the Daytime Saving. I believe the problem was because my rather old phone did not have the update for the timezone. (I really hate that cell phone manufacturers and service providers (VZW) chose to have such a short life-span of Android updates on phones and tablets -- no security updates, nothing.) So, I had to choose the timezone that was different by 1 to accommodate that.

But in the US, even when I set the time manually to the correct zone, I have no problem getting the right time.
("Eastern Standard", "Central Standard", "Mountain Standard" and "Pacific Standard" - all observe DST, but, e.g. "Arizona", "Central America", and a bunch of cities in Mexico -- do not. I was surprised not to see Indiana on that list, as it doesn't observe DST, AFAIR.)
My phone is Droid Razr M, with Android 4.1.2.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Time zone not correct for recurring appts
« Reply #7 on: March 24, 2017, 07:32:46 pm »
Re: A screenshot in the zip file shows the same event twice the dark blue @ 8 AM is through google mail and is the correct time and the light blue is through aqua-mail and is one hour late.

It's the 15 minute event - "... Install Project", correct?

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/

ddcunderground4582

  • Newbie
  • *
  • Posts: 7
Re: Time zone not correct for recurring appts
« Reply #8 on: March 24, 2017, 07:44:27 pm »
it is shown in the "15 min" one and the "stand-up" one but not the round table meeting

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Time zone not correct for recurring appts
« Reply #9 on: March 24, 2017, 07:50:03 pm »
Think I'm starting to see something...
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/

ddcunderground4582

  • Newbie
  • *
  • Posts: 7
Re: Time zone not correct for recurring appts
« Reply #10 on: March 24, 2017, 07:51:20 pm »
awesome!!!!! thank you so much for your help!!!!!!!!!!!!

KieSeyHow

  • Jr. Member
  • **
  • Posts: 56
Re: Time zone not correct for recurring appts
« Reply #11 on: March 24, 2017, 07:55:05 pm »
@KieSeyHow: have you tried to set it to "automatic time zone"?

I usually use "Automatic time zone (Use network-provided time zone)". That works in the US (I have VZW).

I remember that at some point I had problems with that while traveling to Europe. I believe it was not receiving the TZ information from the provider (probably because of roaming on GSM), so, I had to set it manually. It was in the summer after some changes with the Daytime Saving. I believe the problem was because my rather old phone did not have the update for the timezone. (I really hate that cell phone manufacturers and service providers (VZW) chose to have such a short life-span of Android updates on phones and tablets -- no security updates, nothing.) So, I had to choose the timezone that was different by 1 to accommodate that.

But in the US, even when I set the time manually to the correct zone, I have no problem getting the right time.
("Eastern Standard", "Central Standard", "Mountain Standard" and "Pacific Standard" - all observe DST, but, e.g. "Arizona", "Central America", and a bunch of cities in Mexico -- do not. I was surprised not to see Indiana on that list, as it doesn't observe DST, AFAIR.)
My phone is Droid Razr M, with Android 4.1.2.
My device does not have that option.  I get the time synched, but not the option for an automatic time zone.  Then again my tablet is from 2014, so not exactly the latest feature set.

Sent from my SM-P900 using Tapatalk


Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Time zone not correct for recurring appts
« Reply #12 on: March 24, 2017, 10:27:23 pm »
@ddcunderground4582

Please try build 1.9.0-276

https://www.aqua-mail.com/forum/index.php?topic=5565.0

To force a resync, you can change an event's color / category (in web mail / calendar or outlook) and then Menu -> Refresh or Menu -> Sync in your Calendar app.
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/

ddcunderground4582

  • Newbie
  • *
  • Posts: 7
Re: Time zone not correct for recurring appts
« Reply #13 on: March 25, 2017, 10:09:36 am »
That appears to have resolved the issue. What was the issue if you don't mind me asking? Also thank you very much.

Kostya Vasilyev

  • Hero Member
  • *****
  • Posts: 12740
Re: Time zone not correct for recurring appts
« Reply #14 on: March 25, 2017, 01:19:09 pm »
Exchange has two ways to identify time zones:

- Windows: e.g. Eastern Standard Time

- Exchange: e.g. (UTC-05:00) Eastern Time (US & Canada)

And so Aqua Mail has to map that into IANA for Android (and back when uploading).

Exchange 2010 (your server's version) is supposed to return both like this:

<t:StartTimeZone Name="(UTC-05:00) Eastern Time (US & Canada)" Id="Eastern Standard Time">

But was returning this instead:

<t:StartTimeZone Name="Eastern Standard Time" Id="">

i.e. the Windows TZ in the Exchange TZ field (the Name=) and no Windows TZ.

And so, the event was getting recorded in Android without a time zone, causing the shift after a daylight change.

I added special logic to check if the Exchange TZ returned by the server is really a Windows TZ identifier. Now the events are recorded into Android's database with a proper time zone.
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/