
Originally Posted by
CJPinder
If you are in a different time zone to your host then you will need to set the locale correctly in you main language file, e.g. admin/includes/languages/english.php if you are using english.
There is also a Time Zone Offset mod in the downloads area...
http://www.zen-cart.com/index.php?ma...roducts_id=145
...that maybe what you need.
Hello everyone,
Does anyone have Search Log v2.0 working with v1.3.8a of the Time Zone Offset mod by Gilby?
http://www.zen-cart.com/index.php?ma...roducts_id=145
Whilst the Time Zone Offset mod offsets all other times correctly, the Search Log still shows the incorrect time.
In an unsuccessful attempt to resolve this, the following change was made, however, new searches still do not show the offset time.
\includes\classes\observers\class.search_log.php
Line 47 - Changed from:
Code:
$sql = 'insert into ' .DB_PREFIX. 'search_log (search_term, search_time, search_results) values (:searchTerm,now(),:searchResults)';
To:
Code:
$sql = 'insert into ' .DB_PREFIX. 'search_log (search_term, search_time, search_results) values (:searchTerm,date_add(now(), INTERVAL " . TIME_ZONE_OFFSET . " HOUR),:searchResults)';
Can anyone advise what other changes in addition to, or instead of the above, are required to fix this?
If relevant, Zen Cart is v1.38a, PHP is v5.2.6 and MySQL is v5.0.51a-community
Testing on an otherwise clean installed Zen Cart with correct locale setting, and only the Search Log and Time Zone Offset mods installed shows the problem remains, and is seemingly not related to any incompatibility with other mods.
Many thanks,
Edward McDougle.