manblue Posted January 24, 2009 Share Posted January 24, 2009 Hi,I would like to know how Presta Shop knows the time, because I would like to find out the current time of my shop, so that I will be able to figure out exactly when a purchase was made.Thanks Link to comment Share on other sites More sharing options...
Damien Metzger Posted January 24, 2009 Share Posted January 24, 2009 Mostly with date('Y-m-d h:i:s'), sometimes with a MySQL NOW().You need to configure your time zone in config/config.inc.php. Link to comment Share on other sites More sharing options...
manblue Posted January 24, 2009 Author Share Posted January 24, 2009 thank you for your quick reply.so to configure the config.inc file would I have to edit the following code? if (function_exists('date_default_timezone_set')) date_default_timezone_set('Europe/Paris'); My timezone is Atlatic Canada, what would I put there instead? Link to comment Share on other sites More sharing options...
Damien Metzger Posted January 24, 2009 Share Posted January 24, 2009 Help yourself http://fr3.php.net/manual/en/timezones.america.php Link to comment Share on other sites More sharing options...
manblue Posted January 24, 2009 Author Share Posted January 24, 2009 thanks!PRESTA shop is great. Link to comment Share on other sites More sharing options...
evinayaka Posted February 18, 2009 Share Posted February 18, 2009 Thanks. I too used it for changing my time stamp.Great post..thanks PS.Evin Link to comment Share on other sites More sharing options...
Recommended Posts