AquaMail Forum

English - Android => General Discussion => Topic started by: gruppenhaus on June 18, 2016, 11:45:58 am

Title: Time problem
Post by: gruppenhaus on June 18, 2016, 11:45:58 am
Hi there,

after searching the FAQs and the forum my problem still exists and there is no know solution: The time which is shown in the Emails is 2 hours to easly. I tried playing with the time zone (see attachment). And I watched all options. The same mails in all accounts on other mailclients show the correct time. Even when sending with aqua mail. You can see in the screenshot the registration mail for this forum and the time on the top right..

This problem occured at the begining of the week. I did not change anything. I'm using aqua mail since many years.


Please help

Chris
Title: Re: Time problem
Post by: mikeone on June 18, 2016, 12:14:54 pm
Hi Chris,
Please have a look into this thread:
http://www.aqua-mail.com/forum/index.php?topic=3543.msg17487#msg17487

Kostya's suggestion could solve your problem.

Title: Re: Time problem
Post by: gruppenhaus on June 18, 2016, 12:17:17 pm
Thats was I have tried (see the other screenshot), It did not work.
Title: Re: Time problem
Post by: mikeone on June 18, 2016, 12:33:48 pm
Thats was I have tried (see the other screenshot), It did not work.
Kostya's suggestion is to turn off "automatic time zone":

Fix your device's time zone setting (system settings app -> date and time). Maybe turn off "automatic time zone".

If the device's definition of your time zone is not correct, then use some other time zone that matches what your time zone *should* be.

From your screenshot I recognize that the "automatic time zone" is enabled in your device's time zone setting.
Please toggle this option off and try some other time zone(s) which matches "GMT +02:00 MESZ.".
-> screenshots
Title: Re: Time problem
Post by: gruppenhaus on June 18, 2016, 06:15:22 pm
Thats what I meant with "played with time zone". It does not change a bit. I alway have a difference of 2 hours displayed. That drives me crazy.
Title: Re: Time problem
Post by: mikeone on June 18, 2016, 06:24:42 pm
That's really unusual.
Maybe Kostya will have an idea to your issue later on.
Title: Re: Time problem
Post by: gruppenhaus on June 18, 2016, 07:02:23 pm
Yes it is. One thing I can try is to uninstall and reinstall Aqua Mail. But that takes a time and I would like to avoid it. But I dont know any other solution. Using an other mail (gmail) on the same phone does not show any problem ....
Title: Re: Time problem
Post by: mikeone on June 18, 2016, 07:12:13 pm
I recommend to wait for Kostyas suggestions. He is the sole developer of AquaMail and I'm pretty sure that Kostya will have an idea how to solve this problem.
So, please be patient a little...  :)
Title: Re: Time problem
Post by: gruppenhaus on June 18, 2016, 08:41:06 pm
Reinstalling is not the problem. But configuring all mail accounts takes a lot of time. There must be a reason for this behavoir....
Title: Re: Time problem
Post by: mikeone on June 18, 2016, 08:56:02 pm
As mentioned by @Paris Geek you should use the built-in "Backup and Restore" feature. The backup includes your whole account configurations and optionally include the program’s settings.
> go to the app's main window (account list view) > Menu button > "Backup & restore"

More information you will find in the FAQ page:
http://www.aqua-mail.com/?page_id=227
[search for "Backup"]
Title: Re: Time problem
Post by: gruppenhaus on June 18, 2016, 10:54:56 pm
Uninstall and New installation worked very well with the aquamail Backup and restore functions. Great. But the time problem still exists :-(
Title: Re: Time problem
Post by: Kostya Vasilyev on June 19, 2016, 01:32:42 am
If you are sure that your *device's* time zone settings are correct --

-- let's check what's reported by the server.

Please long press the account -> Diag: message dates -> select the Inbox (I suppose) and run this to completion.

The app will prompt to email me a log file, do that.

Please include information on a few specific messages, their time values as seen in the app, what you expect them to be instead, and also on your phone's actual time zone value (GMT +/- how much).
Title: Re: Time problem
Post by: gruppenhaus on June 19, 2016, 03:34:39 am
Thanks.  I mailed. Habe a look on the mail fromm yesterday 8:37 welcome to aquamail Forum. Its displayed 8:37. I created on 10:37....

Title: Re: Time problem
Post by: mikeone on June 19, 2016, 03:38:12 am
@gruppenhaus
We have to go to bed now, since it's 02:38, not 00:38 as mentioned by AquaMail.  😎
... the time viewed in the forum  (03:38) is Moscow time zone.
Title: Re: Time problem
Post by: gruppenhaus on June 19, 2016, 08:16:51 am
 ;)
Title: Re: Time problem
Post by: Kostya Vasilyev on June 19, 2016, 04:31:44 pm
With the default settings, AquaMail uses date/time values as reported by the mail server -- which keeps track of when it "filed" (stored) each message.

Looking at the log --

I believe the time on your mail server is off by 2 hours.

The best thing would be to fix this there.

An example:

UID: 766255564
IDL: 18-Jun-2016 19:30:09 +0200
IDV: 1466271009000
IDP: 18-06-2016 19:30:09.000 +0200
IDA: 19:30

HDL: Sat, 18 Jun 2016 21:30:17 +0200
HDV: 1466278217000
HDP: 18-06-2016 21:30:17.000 +0200
HDA: 21:30

The message's Date header (HDL) was: "Sat, 18 Jun 2016 21:30:17 +0200"

The server reported "when this message was filed" as: "18-Jun-2016 19:30:09 +0200".

I deliberately picked a message which was sent from same time zone as you are in, so it's easier to follow.
Title: Re: Time problem
Post by: gruppenhaus on June 20, 2016, 09:41:44 am
Thanks. It worked!
Title: Re: Time problem
Post by: gruppenhaus on June 20, 2016, 09:42:57 am
Misconfig on the server leads to show wrong times. Very interesting: on other clients this does not affect ...Thanks for the good support!
Title: Re: Time problem
Post by: gruppenhaus on June 21, 2016, 09:03:43 am
Hi.

Wenn checked the Server and everthings looked good. And then yesterday there was an update of aquamail and then the timespamps are ok after the update. Thanks
Title: Re: Time problem
Post by: StR on June 21, 2016, 09:06:10 am
Kostya,

So, do I understand correctly, that "Diag: message dates" obtains more information from the server than a regular sync does. In particular, - the regular sync does not obtain HDL when the sorting is chosen to be by IDL. Right?
Title: Re: Time problem
Post by: Kostya Vasilyev on June 21, 2016, 11:39:34 pm
Re:  So, do I understand correctly, that "Diag: message dates" obtains more information from the server than a regular sync does. In particular, - the regular sync does not obtain HDL when the sorting is chosen to be by IDL. Right?

Yes, it asks the server for each message's "INTERNALDATE" which was wrong here and also for the Date header.

During sync, it fetches one or the other, the DB schema can only store one.

Re: other mail apps

There is a per-account option in AquaMail for this (which one to fetch and store and show as "the" message date/time).

But the default is to use the INTERNALDATE, the date/time set by the *server*, which is when a message was "stored" (filed, received).

Why?

Because replying on the Date header is even less predictable:

People often have wrong date/time/time zone on the devices from which they send mail.

And then you end up with "Jan 1, 1970" or even some date in the future -- because that's in the message's Date header -- and no way to fix it, it's there and it's wrong.

Using server-provided "received at..." time is more predictable, because mail servers are more often than not properly configured wrt. their date / time / time zone.

Title: Re: Time problem
Post by: gruppenhaus on June 22, 2016, 09:43:03 am
Today the problem appeared again! I do not have any reason for it. The same account in Gmail on the same phone shows the correct time. Aquamail has 2 hours less :-(
Title: Re: Time problem
Post by: Kostya Vasilyev on June 22, 2016, 05:53:35 pm
Did you see what I wrote above?

Have you contacted anyone technical responsible for the server -- asking to fix the time?

There is no reason why your mail server's time should be off by two hours, why not fix this?



And if you wish AquaMail to use the Date header -- like many other apps do, yes it's true, although I don't think it's a good idea -- then please:

Long press the account -> options -> IMAP Options -> change "Which date/time to use" from "server time" to "message header"