Webmail 中从 Mantis 收到的邮件显示日期未知
我使用 Mantis bug tracker v1.1.8 和 Horde Webmail System 来处理我公司的电子邮件。当 Mantis 发送的电子邮件到达我公司的收件箱时,我在收件箱视图的日期字段中看到未知日期。当我打开消息时,我看到日期如 Thu, 31 Dec 2009 14:32:15 +0580。我可以在“收件箱”视图中看到其日期的其他邮件的日期格式类似于 Mon, 21 Dec 2009 06:56:18 +0100 [12/21/2009 11:26:18 AM IST] 。供您参考,我已将 config_inc.php 的内容粘贴在下面
<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker_mantis';
$g_db_username = 'root';
$g_db_password = '';
# select the method to mail by:
# 0 - mail()
# 1 - sendmail
# 2 - SMTP
$g_phpMailer_method = 2;
# This option allows you to use a remote SMTP host. Must use the phpMailer script
# Name of smtp host, needed for phpMailer, taken from php.ini
$g_smtp_host = <my_smtp_host>;
$g_administrator_email = <my_administrator_email>;
$g_webmaster_email = <my_webmaster_email>;
$g_from_email = <my_from_email>;
putenv("TZ=Asia/Calcutta");
#Date Settings
$g_default_language = 'english';
$g_short_date_format = 'dm-Y';
$g_normal_date_format = 'dmY H: i';
$g_complete_date_format = 'm-d-y H:i T';
?>
有什么方法可以解决此问题?谢谢
Im using Mantis bug tracker v1.1.8, and the Horde Webmail System for my company emails. When emails sent by Mantis arrive in my company inbox, i get Unknown Date in the Date field of the inbox view. When i open the message, i see the Date like Thu, 31 Dec 2009 14:32:15 +0580. The other mails, whose date i can see in the Inbox view have date in a format like Mon, 21 Dec 2009 06:56:18 +0100 [12/21/2009 11:26:18 AM IST] . For your reference i have pasted below the contents of my config_inc.php
<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker_mantis';
$g_db_username = 'root';
$g_db_password = '';
# select the method to mail by:
# 0 - mail()
# 1 - sendmail
# 2 - SMTP
$g_phpMailer_method = 2;
# This option allows you to use a remote SMTP host. Must use the phpMailer script
# Name of smtp host, needed for phpMailer, taken from php.ini
$g_smtp_host = <my_smtp_host>;
$g_administrator_email = <my_administrator_email>;
$g_webmaster_email = <my_webmaster_email>;
$g_from_email = <my_from_email>;
putenv("TZ=Asia/Calcutta");
#Date Settings
$g_default_language = 'english';
$g_short_date_format = 'dm-Y';
$g_normal_date_format = 'dmY H: i';
$g_complete_date_format = 'm-d-y H:i T';
?>
Any way to fix this problem ? Thank You
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您还应该使用以下函数来设置您的默认时区:
我希望这对您有用:)
You should also use below function to set your default time zone:
I hope that works for you :)
您可以比较螳螂电子邮件和“工作”电子邮件的(标题)源文本。
如果这确实是与螳螂相关的问题,这应该能让您了解。
编辑:
+0580 是有效时区吗?
编辑2:
而不是
尝试这个:
还要尝试验证 mantis 中的时区设置是否正确 - 您也可以在 php.ini 中强制执行它。
You could compare the (header) source text of a mantis email and a "working" email.
This should give you insight if it really is a mantis related problem.
Edit:
Is +0580 a valid timezone?
Edit2:
instead of
try this:
Also try to verify that the timezone is correctly set in mantis - you could also enforce it in your php.ini.