I have change all the timezone to asia/shanghai, but the system time is still a day before. I see in the system info the database timezone is "Timezone CST (Interpreted as America/Chicago)"is there sth wrong?Server InformationosTicket Version v1.10.1 (9ae093d) —  Up to dateWeb Server Software nginx/1.12.2MySQL Version 5.5.57PHP Version 5.6.30PHP Settingscgi.fix_pathinfo "1" is recommended if AJAX is not workingdate.timezone PRCDatabase Information and UsageSchema osticket (localhost)Schema Signature 98ad7d550c26ac44340350912296e673Space Used 2.43 MiBSpace for Attachments 0.01 MiBTimezone CST (Interpreted as America/Chicago)

屏幕快照 2018-01-12 下午11.50.36.jpg

屏幕快照 2018-01-12 下午11.50.50.jpg

"I have change all the timezone to asia/shanghai,"^ this statement is obviously not true.Server OS times zone?Database timezone?PHP timezone?osTicket Default Timezone?osTicket Agent profile timezone?

thanks.Server OS times zone?: PRCDatabase timezone?: asia/shanghai in my.cnfPHP timezone? PRC in php.inosTicket Default Timezone? asia/shanghai in admin settingosTicket Agent profile timezone? asia/shanghai in agent settingI think this might be a bug, I find a solution to this, and change the code, it works: https://github.com/liangxinhui/osTicket-Chineseit suggest two change:1. add  following code in my.cnfdefault-time_zone='+8'2. change return db_get_variable('system_time_zone', 'global'); in include/mysqli.php to return db_get_variable('time_zone', 'global');

Write a Reply...