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. Quote 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? Quote 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? Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.