1

Topic: Timezone issue under Quarantined

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  0.9.9
- Deployed with iRedMail Easy or the downloadable installer? No
- Linux/BSD distribution name and version:  CentOS 7.6
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):  PGSQL v9.2
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes, 3.2
====

After upgrade, facing the issue of incorrect time zone under Quarantined section only.

issue was with another sections too but fixed using:
https://forum.iredmail.org/topic14480-i … panel.html

But Quarantined section is still the same, what to do ?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Timezone issue under Quarantined

Could you show me some info:

- the time zone setting in your account profile page
- a screenshot of a quarantined emails in "Quarantined Mails" page. And show me which time is expected.

3 (edited by saquib.akhtar 2019-04-04 17:25:31)

Re: Timezone issue under Quarantined

ZhangHuangbin wrote:

Could you show me some info:

- the time zone setting in your account profile page
- a screenshot of a quarantined emails in "Quarantined Mails" page. And show me which time is expected.


Please see the image attached.

My time zone is Asia/Kolkata GMT +05:30

But under this section it is far ahead.

Post's attachments

time_issue_quarantined.PNG
time_issue_quarantined.PNG 51.18 kb, 1 downloads since 2019-04-04 

You don't have the permssions to download the attachments of this post.

4

Re: Timezone issue under Quarantined

I will try to reproduce it locally and fix it. Stay tuned.

5

Re: Timezone issue under Quarantined

I can not reproduce this issue locally, it works for me.

- May i know how and where you set the time zone? please show me screenshot(s).
- Does logout and re-login fix the issue?

6

Re: Timezone issue under Quarantined

ZhangHuangbin wrote:

I can not reproduce this issue locally, it works for me.

- May i know how and where you set the time zone? please show me screenshot(s).
- Does logout and re-login fix the issue?


I have made following settings according to my timezone but still same issue persists:

UNDER "/var/www/iredadmin/templates/default/amavisd/inout.html" ;
<td style="white-space: nowrap;">{{ r.time_iso |set_datetime_format }}</td>


UNDER "/var/www/iredadmin/libs/default_settings.py" ;
LOCAL_TIMEZONE = 'GMT+05:30'


UNDER LOCAL_TIMEZONE = 'GMT+05:30' ;
"/var/www/iredadmin/settings.py"

--------------------------------------------------------------------------------------------------

No login/logout , delete all messages from database nothing help out.

7

Re: Timezone issue under Quarantined

Does the admin account you use to login has a per-account time zone setting? Check it in account preference page on the top-right corner.

8

Re: Timezone issue under Quarantined

ZhangHuangbin wrote:

Does the admin account you use to login has a per-account time zone setting? Check it in account preference page on the top-right corner.

It's time zone is already set Asia/Kolkata +05:30

9

Re: Timezone issue under Quarantined

ZhangHuangbin wrote:

Does the admin account you use to login has a per-account time zone setting? Check it in account preference page on the top-right corner.

what to do now?

10

Re: Timezone issue under Quarantined

The problem is i can not reproduce this issue locally.
Is it possible to give me direct ssh access with root privilege to your server for debugging? Also an admin account which can reproduce this issue is required. Contact me: https://www.iredmail.org/contact.html

Note: if it's not an iRedAdmin-Pro bug/issue, i will charge one support ticket for this. ok for you?

11

Re: Timezone issue under Quarantined

ZhangHuangbin wrote:

The problem is i can not reproduce this issue locally.
Is it possible to give me direct ssh access with root privilege to your server for debugging? Also an admin account which can reproduce this issue is required. Contact me: https://www.iredmail.org/contact.html

Note: if it's not an iRedAdmin-Pro bug/issue, i will charge one support ticket for this. ok for you?

I cannot provide direct ssh to that server as it is not allowed under organization rules.
Can you give me some steps for debugging and if it is not iRedAdmin-Pro issue then I will buy support ticket.

12

Re: Timezone issue under Quarantined

I don't know how to guide you for debugging iRedAdmin-Pro ... it's like locating the possible source lines, add some "print" lines to print info, check the printed info and analyze...

13

Re: Timezone issue under Quarantined

ZhangHuangbin wrote:

I don't know how to guide you for debugging iRedAdmin-Pro ... it's like locating the possible source lines, add some "print" lines to print info, check the printed info and analyze...

Ok, where to include print statements in html files ?

14

Re: Timezone issue under Quarantined

in file templates/default/macros/amavisd.html, about line 120.

15

Re: Timezone issue under Quarantined

ZhangHuangbin wrote:

in file templates/default/macros/amavisd.html, about line 120.

Finally fixed after observing line 120 that you told in /default/macros/amavisd.htm  , it was converting the timezone to UTC extra parameters were defined.

Removed and fixed to :

  <td data-sort-value="{{ r.time_iso }}">{{ r.time_iso | set_datetime_format }}</td>

Thanks for the support.