标题(CodeIgniter)中的电子邮件日期为7小时 [英] Email date in header (CodeIgniter) is 7 hours off

查看:158
本文介绍了标题(CodeIgniter)中的电子邮件日期为7小时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们从我们的网站收到邮件时,先通过CodeIgniter,然后是Google Apps(邮件) - 标题中的日期比实际时间晚7小时。

When we receive mail from our website, through CodeIgniter first then Google Apps (mailer) - the date in the header is 7 hours behind the real time.

我们检查服务器时间,并且已正确设置。

We've checked the server time, and it is correctly set.

有人遇到过这个问题吗?

Has anyone experienced this problem?

谢谢!

推荐答案

这可能与 system / application / config / config.php

/*
|--------------------------------------------------------------------------
| Master Time Reference
|--------------------------------------------------------------------------
|
| Options are "local" or "gmt".  This pref tells the system whether to use
| your server's local time as the master "now" reference, or convert it to
| GMT.  See the "date helper" page of the user guide for information
| regarding date handling.
|
*/
$config['time_reference'] = 'local';

这篇关于标题(CodeIgniter)中的电子邮件日期为7小时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆