<div dir="ltr"><div><div><div>Hi<br><br></div>Any update regarding this issue?<br><br><br></div>Thanks<br></div>Sutharsan Jeganathan<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, May 8, 2015 at 11:20 AM, Uma S <span dir="ltr"><<a href="mailto:uma.s@vtiger.com" target="_blank">uma.s@vtiger.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Thanks! for notification will look into this soon.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, May 7, 2015 at 6:47 PM, Alan Bell <span dir="ltr"><<a href="mailto:alan.bell@libertus.co.uk" target="_blank">alan.bell@libertus.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In short, always set $default_timezone in config.inc.php to UTC and all will be well.<br>
<br>
in this file:<br>
include/fields/DateTimeField.php<br>
there is a function:<br>
        static function getDBTimeZone() {<br>
                   if(empty(self::$databaseTimeZone)) {<br>
                        $defaultTimeZone = date_default_timezone_get();<br>
                        if(empty($defaultTimeZone)) {<br>
                                $defaultTimeZone = 'UTC';<br>
                        }<br>
                           self::$databaseTimeZone = $defaultTimeZone;<br>
                }<br>
                return self::$databaseTimeZone;<br>
        }<br>
<br>
the effect of this is that if you have specified something like 'Europe/London' in your config.inc.php then vtiger 6.2 will store all datetime fields in your system's default time zone rather than UTC. This looks like it is working OK for a while in the vtiger user interface. After daylight savings or British summer time happens then the system will mess up times that were saved with the other offset. It also completely messes up synchronisation with exchange/android/ipad/anything else because those all expect the system to store UTC internally.<br>
<br>
$default_timezone basically performs two functions now, it is the default timezone for new users (or users who have no timezone specified, but I don't know how to do that) and it is also the database timezone, which is a bit scary. I can't see any reason why anyone would ever want the database to be storing times in anything but UTC, and especially not in a zone with daylight savings.<br>
<br>
Alan.<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>
</font></span></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>