dumkat Posted February 3, 2010 Share Posted February 3, 2010 The time php gives is one hour behind server time. Any ideas why this is? The server was update today and this started happening. Link to comment https://forums.phpfreaks.com/topic/190853-php-time-different-from-server-time/ Share on other sites More sharing options...
RussellReal Posted February 4, 2010 Share Posted February 4, 2010 is your php time still accurate? Link to comment https://forums.phpfreaks.com/topic/190853-php-time-different-from-server-time/#findComment-1006477 Share on other sites More sharing options...
dumkat Posted February 4, 2010 Author Share Posted February 4, 2010 Looks like php 5.1.6 upgrade has the wrong time for America/Toronto. New York is right so i manually set it in the project. How do i change this in the php.ini? Link to comment https://forums.phpfreaks.com/topic/190853-php-time-different-from-server-time/#findComment-1006482 Share on other sites More sharing options...
RussellReal Posted February 4, 2010 Share Posted February 4, 2010 you need to contact customer support to change your timezone set in apache. Link to comment https://forums.phpfreaks.com/topic/190853-php-time-different-from-server-time/#findComment-1006485 Share on other sites More sharing options...
oni-kun Posted February 4, 2010 Share Posted February 4, 2010 you need to contact customer support to change your timezone set in apache. This is not needed, if you have access to .htaccess.. php_value foo bar Albeit with .htaccess you can define your own local php.ini. Link to comment https://forums.phpfreaks.com/topic/190853-php-time-different-from-server-time/#findComment-1006672 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.