1 (edited by mir 2015-06-24 23:49:06)

Topic: iredadmin. Date problems

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Linux/BSD distribution name and version: Debian 8
- Related log if you're reporting an issue:
====

Iredadmin does not respect timezone when logging to admin.log. Problem is that datetime is inserted in log file using now() which does not respect timezone on Unix servers where absolute time is always UTC. Either time should be entered respecting timezone or displaying time in iredadmin should convert logged time to current user timezone.

My setting in php.ini: date.timezone = Europe/Copenhagen
From server just after login:
$ date
Wed Jun 24 17:40:18 CEST 2015
Login logged in admin.log:
2015-06-24 15:39:09     postmaster@foo.bar     192.168.2.79     Login success

----

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

2

Re: iredadmin. Date problems

iRedAdmin-Pro uses its own time zone setting.

You can define a global time zone setting in iRedAdmin-Pro config file 'settings.py', for example:

LOCAL_TIMEZONE = 'GMT+08:00'

You can find supported time zone list in file 'libs/default_settings.py'. Note: do not modify libs/default_settings.py, it will be ignored during upgrading, all custom settings should go to 'settings.py'.

For per-user or per-domain time zone, you can find it in user/domain profile page in iRedAdmin-Pro.

3

Re: iredadmin. Date problems

ZhangHuangbin wrote:

iRedAdmin-Pro uses its own time zone setting.

You can define a global time zone setting in iRedAdmin-Pro config file 'settings.py', for example:

LOCAL_TIMEZONE = 'GMT+08:00'

You can find supported time zone list in file 'libs/default_settings.py'. Note: do not modify libs/default_settings.py, it will be ignored during upgrading, all custom settings should go to 'settings.py'.

For per-user or per-domain time zone, you can find it in user/domain profile page in iRedAdmin-Pro.

Does this setting also work for iRedAdmin?

4

Re: iredadmin. Date problems

Sorry, this is not implemented in iRedAdmin open source edition.

5

Re: iredadmin. Date problems

ZhangHuangbin wrote:

Sorry, this is not implemented in iRedAdmin open source edition.

Would you accept a patch to solve this problem?

6

Re: iredadmin. Date problems

We have code for this feature in iRedAdmin-Pro, and no plan to port it to iRedAdmin open source edition.

Personally, i think spending time on iRedAdmin open source edition to implement features which are available in iRedAdmin-Pro is not a good idea, the value of your time is more expensive than the price of iRedAdmin-Pro. Let me implement (reasonable) features for you, and you just keep requesting new features.