1

Topic: how to change date time for Admin Pannel iredadmin

Hi Zang,

we are using iRedAdmin Dasboard and check the any log so showing the date is correct but time is show worng . so how to change the time in dash board time showing the right side. kindly help.
like - 2012-01-09 11:04:41(how to change process time.0
Thanks
Manoj
My system information is below -
System Information
Number of domains    2
Stored Emails    216757 Emails. 1 GB.
iRedAdmin-Pro    v1.6.2 (LDAP)
Hostname    mail.aipl.in
Uptime    0 days, 7 hours, 4 minutes.
Server Load    0.34, 0.08, 0.05.

2

Re: how to change date time for Admin Pannel iredadmin

Does "incorrect time" has the same drift as your timezone? If so, you can upgrade iRedAdmin-Pro-1.6.2 to the latest version, 1.6.3, released today, and update "LOCAL_TIMEZONE" setting in file libs/settings.py.

3

Re: how to change date time for Admin Pannel iredadmin

I will change "LOCAL_TIMEZONE" adn settings.py file  and had setting linke LOCAL_TIMEZONE = 'GMT+5:30' but not update iRedadmin Pannel.

please help.

Thanks
manoj

4

Re: how to change date time for Admin Pannel iredadmin

Did you restart Apache web server after changed LOCAL_TIMEZONE?
Also, could you help capture a screenshot of Dashboard to show me which time stamp you want to change?

5

Re: how to change date time for Admin Pannel iredadmin

not sloved yet same problem are continue...how do this.

Post's attachments

New Microsoft Office Word Document (3).docx 180.19 kb, 4 downloads since 2012-01-16 

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

6

Re: how to change date time for Admin Pannel iredadmin

Hi manoj,

Could you please attach image directly instead of a Microsoft Office document?

- Are you running the latest iRedAdmin-Pro? It should be iRedAdmin-Pro-LDAP-1.6.3 or iRedAdmin-Pro-MySQL-1.3.1.
- What settings did you change?

7

Re: how to change date time for Admin Pannel iredadmin

Hi Zhang,

I updated to latest version i.e 1.6.3 but looks like it doesn't accept value like +5:45 , it only accepts +5 , +6. Can you please confirm if this works as it is not working for me.

Thanks,
Bikrish

8

Re: how to change date time for Admin Pannel iredadmin

Hi bikrish, manoj_25796,

I fixed this issue today, could you please try fixing it with below steps? This patch is applicable to iRedAdmin-Pro-LDAP-1.6.3 and iRedAdmin-Pro-MySQL-1.3.1.

1) Download attached patch, and copy/upload it to your iRedMail server. Assume it's /root/timezone.patch.

2) Change current working directory to iRedAdmin-Pro installation directory. For example, /var/www/iRedAdmin-Pro-LDAP-1.6.3 (on RHEL/CentOS/Scientific Linux) or /var/www/iRedAdmin-Pro-MySQL-1.3.1.

# cd /var/www/iRedAdmin-Pro-MySQL-1.3.1/

3) Backup files which will be patched:

# cp libs/ireddate.py libs/ireddate.py.bak
# cp libs/settings.py libs/settings.py.bak

4) Verify this patch with option '--dry-run':

# patch -p0 --dry-run < /root/timezone.patch
patching file libs/ireddate.py
patching file libs/settings.py

If you got the same output message, it's safe to apply this patch. If not, please do NOT try below steps.

5) Apply this patch immediately, without '--dry-run':

# patch -p0 < /root/timezone.patch

6) Update LOCAL_TIMEZONE in libs/settings.py, you must set timezone in correct timezone format. iRedAdmin has all available timezones listed above LOCAL_TIMEZONE setting. Attached below for your reference.

7) Restarting Apache web service is required.

GMT-12:00
GMT-11:00
GMT-10:00
GMT-09:30
GMT-09:00
GMT-08:00
GMT-07:00
GMT-06:00
GMT-05:00
GMT-04:30
GMT-04:00
GMT-03:30
GMT-03:00
GMT-02:00
GMT-01:00
GMT
GMT+01:00
GMT+02:00
GMT+03:00
GMT+03:30
GMT+04:00
GMT+04:30
GMT+05:00
GMT+05:30
GMT+05:45
GMT+06:00
GMT+06:30
GMT+07:00
GMT+08:00
GMT+08:45
GMT+09:00
GMT+09:30
GMT+10:00
GMT+10:30
GMT+11:00
GMT+11:30
GMT+12:00
GMT+12:45
GMT+13:00
GMT+14:00
Post's attachments

timezone.patch 6.98 kb, 13 downloads since 2012-01-22 

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

9

Re: how to change date time for Admin Pannel iredadmin

Hi Zhang,

There is still a problem with patch. I get internal server error when I click on iredmail message sent status. Below is apache log. Hope this will help you find the cause.

[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223] Traceback (most recent call last):
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/web/application.py", line 241, in process
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     return self.handle()
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/web/application.py", line 232, in handle
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     return self._delegate(fn, self.fvars, args)
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/web/application.py", line 411, in _delegate
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     return handle_class(cls)
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/web/application.py", line 386, in handle_class
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     return tocall(*args)
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/controllers/base.py", line 40, in proxyfunc
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     return func(self, *args, **kw)
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/controllers/amavisd/log.py", line 36, in GET
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     msg=web.input().get('msg'),
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/iredbase.py", line 195, in render_template
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     return jinja_env.get_template(template_name).render(context)
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/jinja2/environment.py", line 669, in render
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     return self.environment.handle_exception(exc_info, True)
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/../templates/default/amavisd/inout.html", line 15, in top-level template code
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     {% from "macros/msgHandlers.html" import maillogMsgHandler with context %}
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/../templates/default/layout.html", line 125, in top-level template code
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     {% block main %}{% endblock %}
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/../templates/default/amavisd/inout.html", line 145, in block "main"
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     <td style="white-space: nowrap;">{{ r.size |filesizeformat |e }}</td>
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/ireddate.py", line 214, in convert_utc_to_timezone
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     return to_datetime_with_tzinfo(t, tzinfo=LOCAL_TIMEZONE).strftime(format)
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/ireddate.py", line 179, in to_datetime_with_tzinfo
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     tz = pick_timezone(tzinfo, __timezone__)
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/ireddate.py", line 153, in pick_timezone
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     tz = timezone(x)
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/ireddate.py", line 144, in timezone
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]     raise DateError, "Can't find tzname %s" % tzname
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223] DateError: Can't find tzname GMT+5
[Sun Jan 22 22:56:14 2012] [error] [client 92.20.123.223]


Thanks,
Bikrish

10

Re: how to change date time for Admin Pannel iredadmin

Hi Bikrish,

As mentioned in step 6), you HAVE TO update LOCAL_TIMEZONE with new format.

ZhangHuangbin wrote:

6) Update LOCAL_TIMEZONE in libs/settings.py, you must set timezone in correct timezone format. iRedAdmin has all available timezones listed above LOCAL_TIMEZONE setting. Attached below for your reference.

It says "Can't find tzname GMT+5", which should be set to "GMT+05:00" in libs/settings.py. As mentioned in your previous email, you want 'GMT+05:45' instead, right? Then it should be:

LOCAL_TIMEZONE = 'GMT+05:45'

Note: In new version of iRedAdmin-Pro, incorrect timezone value will be ignored, and GMT+00:00 will be used instead.

11

Re: how to change date time for Admin Pannel iredadmin

Hi Zhang,

I tried yesterday setting LOCAL_TIMEZONE in libs/setting.py file and I get in "internal server error" when I try to sent mail in iredadmin GUI and below is the log reported in apache. I have also attached settings.py file.


[Tue Jan 24 02:37:12 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jan 24 02:37:32 2012] [error] [client 92.20.123.223] File does not exist: /var/www/html/favicon.ico
[Tue Jan 24 02:38:00 2012] [error] [client 92.20.123.223] File does not exist: /var/www/html/favicon.ico
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] Traceback (most recent call last):
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/web/application.py", line 241, in process
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return self.handle()
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/web/application.py", line 232, in handle
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return self._delegate(fn, self.fvars, args)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/web/application.py", line 411, in _delegate
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return handle_class(cls)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/web/application.py", line 386, in handle_class
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return tocall(*args)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/controllers/base.py", line 40, in proxyfunc
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return func(self, *args, **kw)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/controllers/amavisd/log.py", line 36, in GET
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     msg=web.input().get('msg'),
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/iredbase.py", line 195, in render_template
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return jinja_env.get_template(template_name).render(context)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/jinja2/environment.py", line 669, in render
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return self.environment.handle_exception(exc_info, True)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/../templates/default/amavisd/inout.html", line 15, in top-level template code
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     {% from "macros/msgHandlers.html" import maillogMsgHandler with context %}
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/../templates/default/layout.html", line 125, in top-level template code
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     {% block main %}{% endblock %}
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/../templates/default/amavisd/inout.html", line 145, in block "main"
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     <td style="white-space: nowrap;">{{ r.size |filesizeformat |e }}</td>
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/ireddate.py", line 214, in convert_utc_to_timezone
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return to_datetime_with_tzinfo(t, tzinfo=LOCAL_TIMEZONE).strftime(format)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/ireddate.py", line 179, in to_datetime_with_tzinfo
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     tz = pick_timezone(tzinfo, __timezone__)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/ireddate.py", line 153, in pick_timezone
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     tz = timezone(x)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/ireddate.py", line 144, in timezone
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     raise DateError, "Can't find tzname %s" % tzname
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] DateError: Can't find tzname GMT+5:45
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]
[Tue Jan 24 02:38:03 2012] [error] [client 92.20.123.223] File does not exist: /var/www/html/favicon.ico


ZhangHuangbin wrote:

Hi Bikrish,

As mentioned in step 6), you HAVE TO update LOCAL_TIMEZONE with new format.

ZhangHuangbin wrote:

6) Update LOCAL_TIMEZONE in libs/settings.py, you must set timezone in correct timezone format. iRedAdmin has all available timezones listed above LOCAL_TIMEZONE setting. Attached below for your reference.

It says "Can't find tzname GMT+5", which should be set to "GMT+05:00" in libs/settings.py. As mentioned in your previous email, you want 'GMT+05:45' instead, right? Then it should be:

LOCAL_TIMEZONE = 'GMT+05:45'

Note: In new version of iRedAdmin-Pro, incorrect timezone value will be ignored, and GMT+00:00 will be used instead.

Post's attachments

settings.py 6.1 kb, 4 downloads since 2012-01-23 

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

12

Re: how to change date time for Admin Pannel iredadmin

Hi Zhang,

I fixed the problem. It was my mistake. I missed leading zero in timezone format. I was supposed to write +05:45 not +5:45.

Thanks,
Bikrish

bikrish wrote:

Hi Zhang,

I tried yesterday setting LOCAL_TIMEZONE in libs/setting.py file and I get in "internal server error" when I try to sent mail in iredadmin GUI and below is the log reported in apache. I have also attached settings.py file.


[Tue Jan 24 02:37:12 2012] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Jan 24 02:37:32 2012] [error] [client 92.20.123.223] File does not exist: /var/www/html/favicon.ico
[Tue Jan 24 02:38:00 2012] [error] [client 92.20.123.223] File does not exist: /var/www/html/favicon.ico
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] Traceback (most recent call last):
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/web/application.py", line 241, in process
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return self.handle()
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/web/application.py", line 232, in handle
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return self._delegate(fn, self.fvars, args)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/web/application.py", line 411, in _delegate
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return handle_class(cls)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/web/application.py", line 386, in handle_class
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return tocall(*args)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/controllers/base.py", line 40, in proxyfunc
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return func(self, *args, **kw)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/controllers/amavisd/log.py", line 36, in GET
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     msg=web.input().get('msg'),
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/iredbase.py", line 195, in render_template
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return jinja_env.get_template(template_name).render(context)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/usr/lib/python2.4/site-packages/jinja2/environment.py", line 669, in render
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return self.environment.handle_exception(exc_info, True)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/../templates/default/amavisd/inout.html", line 15, in top-level template code
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     {% from "macros/msgHandlers.html" import maillogMsgHandler with context %}
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/../templates/default/layout.html", line 125, in top-level template code
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     {% block main %}{% endblock %}
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/../templates/default/amavisd/inout.html", line 145, in block "main"
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     <td style="white-space: nowrap;">{{ r.size |filesizeformat |e }}</td>
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/ireddate.py", line 214, in convert_utc_to_timezone
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     return to_datetime_with_tzinfo(t, tzinfo=LOCAL_TIMEZONE).strftime(format)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/ireddate.py", line 179, in to_datetime_with_tzinfo
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     tz = pick_timezone(tzinfo, __timezone__)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/ireddate.py", line 153, in pick_timezone
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     tz = timezone(x)
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]   File "/var/www/iredadmin/libs/ireddate.py", line 144, in timezone
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]     raise DateError, "Can't find tzname %s" % tzname
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223] DateError: Can't find tzname GMT+5:45
[Tue Jan 24 02:38:01 2012] [error] [client 92.20.123.223]
[Tue Jan 24 02:38:03 2012] [error] [client 92.20.123.223] File does not exist: /var/www/html/favicon.ico


ZhangHuangbin wrote:

Hi Bikrish,

As mentioned in step 6), you HAVE TO update LOCAL_TIMEZONE with new format.

ZhangHuangbin wrote:

6) Update LOCAL_TIMEZONE in libs/settings.py, you must set timezone in correct timezone format. iRedAdmin has all available timezones listed above LOCAL_TIMEZONE setting. Attached below for your reference.

It says "Can't find tzname GMT+5", which should be set to "GMT+05:00" in libs/settings.py. As mentioned in your previous email, you want 'GMT+05:45' instead, right? Then it should be:

LOCAL_TIMEZONE = 'GMT+05:45'

Note: In new version of iRedAdmin-Pro, incorrect timezone value will be ignored, and GMT+00:00 will be used instead.

13

Re: how to change date time for Admin Pannel iredadmin

Hi manoj,

I saw your forum report that you cannot apply this patch successfully.

manoj wrote:

[root@mail iRedAdmin-Pro-LDAP-1.6.3]# patch -p0 --dry-run < /root/timezone.patch
patching file libs/ireddate.py
patching file libs/settings.py
Hunk #1 FAILED at 7.
1 out of 1 hunk FAILED -- saving rejects to file libs/settings.py.rej

Patch for file libs/settings.py just add some comment lines, you can fix it this way:

1) Revert LOCAL_TIMEZONE to 'GMT'.
2) Try patch it again
3) Update LOCAL_TIMEZONE to 'GMT+05:30'

14

Re: how to change date time for Admin Pannel iredadmin

Hi Bikrish,

we are using centos 5.6 and we have subscreption iRedAdmin-Pro-LDAP 1.6.3
problem are continue.. Admin pannel time zone not update your guide line-
some message are below-

[root@mail iRedAdmin-Pro-LDAP-1.6.3]# patch -p0 --dry-run < /root/timezone.patch
patching file libs/ireddate.py
patching file libs/settings.py
Hunk #1 FAILED at 7.
1 out of 1 hunk FAILED -- saving rejects to file libs/settings.py.rej

if we using root than some message:-



[root@mail ~]# patch -p0 --dry-run < /root/timezone.patch
can't find file to patch at input line 4
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r 2fc742658130 admin/trunk/libs/ireddate.py
|--- libs/ireddate.py   Wed Jan 18 13:29:49 2012 +0800
|+++ libs/ireddate.py   Sun Jan 22 15:10:53 2012 +0800
--------------------------
File to patch:


please help

15

Re: how to change date time for Admin Pannel iredadmin

Hi manoj,

Please see my post above. i replied after received your forum report (don't use 'Report' feature for this).

16

Re: how to change date time for Admin Pannel iredadmin

ZhangHuangbin wrote:

Hi manoj,

I saw your forum report that you cannot apply this patch successfully.

manoj wrote:

[root@mail iRedAdmin-Pro-LDAP-1.6.3]# patch -p0 --dry-run < /root/timezone.patch
patching file libs/ireddate.py
patching file libs/settings.py
Hunk #1 FAILED at 7.
1 out of 1 hunk FAILED -- saving rejects to file libs/settings.py.rej

Patch for file libs/settings.py just add some comment lines, you can fix it this way:

1) Revert LOCAL_TIMEZONE to 'GMT'.
2) Try patch it again
3) Update LOCAL_TIMEZONE to 'GMT+05:30'


update sucessfully but not login postmaster@aipl.in (control pannel)

please help

17

Re: how to change date time for Admin Pannel iredadmin

Hi ZhangHuangbin,


Admin Log
Sent Mails
Received Mails
Quarantined Mails
Sent Mails (1-50/3401)   
About mail logs
Mail logs of incoming and outgoing mails which older than 30 days will be deleted from database permanantly.
Search activities
Domain name or mail address * Choose activity type     Subject Sender Recipient Size Date
RE: Time-1:39 PM manoj.kumar@aipl.in   manoj.kumar@aipl.in 5 KB 2012-01-28 13:07:51
Time-1:34 PM manoj.kumar@aipl.in   manoj25796@gmail.com 2 KB 2012-01-28 13:03:53


Time will be different 5:30 but 30 min time is slow.

same problem are continue...

18

Re: how to change date time for Admin Pannel iredadmin

Hi manoj,

Sorry, I'm confused about what your problem is sad Could you please explain it clearer?

19

Re: how to change date time for Admin Pannel iredadmin

Hi Zhang,

According to you all patch is successfully update but now for example i send the below mail-

Time-1:39 PM manoj.kumar@aipl.in   manoj.kumar@aipl.in 5 KB 2012-01-28 13:07:51

I send mail time 13:39 PM but dash board show time 13:07 PM so may be 30 min back time ..
so how to check . kindly update.

Thanks
Manoj

20

Re: how to change date time for Admin Pannel iredadmin

manoj_25796 wrote:

Hi Zhang,

According to you all patch is successfully update but now for example i send the below mail-

Time-1:39 PM manoj.kumar@aipl.in   manoj.kumar@aipl.in 5 KB 2012-01-28 13:07:51

I send mail time 13:39 PM but dash board show time 13:07 PM so may be 30 min back time ..
so how to check . kindly update.

Thanks
Manoj


Still wating..

21

Re: how to change date time for Admin Pannel iredadmin

manoj_25796 wrote:

I send mail time 13:39 PM but dash board show time 13:07 PM so may be 30 min back time ..

Could you please help capture a screenshot to help me understand this issue?
Please attach image file in your post directly, not a Microsoft Office document.

22

Re: how to change date time for Admin Pannel iredadmin

please check the mark file.

Post's attachments

dashboard.JPG 159.62 kb, file has never been downloaded. 

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

23

Re: how to change date time for Admin Pannel iredadmin

Were all records in this screenshot incorrect or just the first one? Could you paste me the LOCAL_TIMEZONE setting in libs/settings.py?

24

Re: how to change date time for Admin Pannel iredadmin

# Local timezone. It must be one of below:
#   - GMT-11 to GMT-1
#   - GMT
#   - GMT+1 to GMT+12
# Examples:
#   LOCAL_TIMEZONE = 'GMT-3'    # Brazil Eastern Time
#   LOCAL_TIMEZONE = 'GMT'      # Greenwich Mean Time
#   LOCAL_TIMEZONE = 'GMT+8'    # Asia/Hong_Kong
#   LOCAL_TIMEZONE = 'GMT+10'
LOCAL_TIMEZONE = 'GMT+05:30'

25

Re: how to change date time for Admin Pannel iredadmin

Were all records in this screenshot incorrect or just the first one?