
Originally Posted by
JohnBoyCR
message to gilby and others :
Update to how I perceive the problem and its resolution.
The problem, as I see it, is that sales end relative to the
server clock and not relative to whatever time zone I may have
set using the TZ environment parameter.
If I want to offset the sale end time in order to have the stop time
coincide with the time zone I have established using TZ, can
I not simply change the includes/functions/salemaker.php
code to use dateadd("h", TIME_ZONE_OFFSET, now() ) instead
of now() ? I would define TIME_ZONE_OFFSET in my
English.php file.
It is quite possible that my ignorance is showing here, but it
would seem to me that this would be a possible solution to my
specific problem.
Thanks for the feedback.
now() is a mysql function and the TZ variable does not affect this
In the code replace both occurances of with
PHP Code:
date_add(now(), INTERVAL '" . TIME_ZONE_OFFSET . "' HOUR)
If you are not using the Time Zone Offset mod then you can set the define in english.php as suggested.