Portal Home > Knowledgebase > Articles Database > Mismatch in time between the server and apps


Mismatch in time between the server and apps




Posted by InstaCarma_Support, 06-16-2009, 12:45 AM
Thought of sharing this with all. Issue: Php function was returning wrong time. There was a difference of 1 hour between the server time and the php time. Due to this ,most of the functions on the site were not working properly. Fix : For checking the php time, put the following code in a file, say time.php Execute the php script. To get the server time , issue the following command : You can see the difference of one hour between the server time and the php time. For fixing this, you need to install the PECL timezonedb module. At the end , you might see the following message : ========================== Build process completed successfully Installing ‘/usr/local/lib/php/extensions/no-debug-non-zts-20060613/timezonedb.s o’ install ok: channel://pecl.php.net/timezonedb-2009.6 configuration option “php_ini” is not set to php.ini location You should add “extension=timezonedb.so” to php.ini ========================== So , add the line ” extension=timezonedb.so” to the php.ini file and restart apache. There shouldn’t be any mismatch in time now.

Posted by Rekhatitus, 06-16-2009, 12:57 AM
thanks, that was a good piece of information



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Dade 2 review (Views: 675)


Language: