Forums / General Questions / Orders coming in wrong date

Orders coming in wrong date

Views: 1,331

Results 1 to 9 of 9
7 Aug 2012, 10:50 PM
#1
panelcart avatar

panelcart

Zen Follower

Join Date:
Sep 2006
Posts:
125
Plugin Contributions:
0

Orders coming in wrong date

Hi,

I have a clean install of Zen cart plus the following Installed Modules.
EasyPopulate
basic_uk_mail_2-2-2.zip
nochex_payments_module__apc_1-5.zip
Time Zone Fix Module link for the one I have installed is: http://www.zen-cart.com/downloads.php?do=file&id=1236

When an order is placed its coming up as a day later than the current day.

So anything ordered on the 7th of August came in as 8th of August, but at the top of the admin section the date and time is correct. What can be causing this?

any help is appreciated, thanks!

This is my Signature: w00t

8 Aug 2012, 5:35 AM
#2
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Orders coming in wrong date

What version of zen-cart?
What is in your \includes\extra_configures\time_zone_fix.php?
and YOUR_RENAMED_ADMIN\includes\extra_configures\time_zone_fix.php?
check what is now "physically" on the server.

btw you did rename the directory "YOUR_RENAMED_ADMIN" to whatever your real "admin" directory is now called?
You didn't just upload it to the directory "YOUR_RENAMED_ADMIN"?

8 Aug 2012, 8:55 AM
#3
panelcart avatar

panelcart

Zen Follower

Join Date:
Sep 2006
Posts:
125
Plugin Contributions:
0

Re: Orders coming in wrong date

Hi,

Thanks for the answer.

Version 1.5

time_zone_fix.php has the below in it

"<?php
// Full list of timezones here: http://php.net/manual/en/timezones.php
//
// You can modify the TZ (Time Zone) by using a named Country/City
// eg:
// TZ=America/Los_Angeles
// TZ=America/Denver;
// TZ=America/Chicago
// TZ=America/Costa_Rica;

putenv ('TZ=Australia/Melbourne');

?>"

THE ADMIN one has the below in it:

"<?php
// Full list of timezones here: http://php.net/manual/en/timezones.php
//
// You can modify the TZ (Time Zone) by using a named Country/City
// eg:
// TZ=America/Los_Angeles
// TZ=America/Denver;
// TZ=America/Chicago
// TZ=America/Costa_Rica;

putenv ('TZ=Europe/London');

?>"

Yes i renamed my admin and added it to the correct admin folder not the "YOUR_RENAMED_ADMIN"

Thanks alot for the response!

This is my Signature: w00t

8 Aug 2012, 9:53 AM
#4
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Orders coming in wrong date

So where are you?

putenv ('TZ=Australia/Melbourne');
This puts the front of the website in Australia

putenv ('TZ=Europe/London');
This puts your admin in the UK

8 Aug 2012, 9:56 AM
#5
panelcart avatar

panelcart

Zen Follower

Join Date:
Sep 2006
Posts:
125
Plugin Contributions:
0

Re: Orders coming in wrong date

hmmm, ok got it. Im in London so I updated the shop includes to the same as the admin. hope this solves it.

ty very much

This is my Signature: w00t

8 Aug 2012, 10:04 AM
#6
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Orders coming in wrong date

panelcart:

hmmm, ok got it. Im in London so I updated the shop includes to the same as the admin. hope this solves it.

ty very muchbtw: You don't upload the file
\includes\classes\db\query_factory.php
As this is already updated and included in zen-cart v1.5.0

If you did upload it then you need to restore the original v1.5.0 version

8 Aug 2012, 10:11 AM
#7
panelcart avatar

panelcart

Zen Follower

Join Date:
Sep 2006
Posts:
125
Plugin Contributions:
0

Re: Orders coming in wrong date

ok im confused. all i did was edit the fit that had australia to the below and upload the file. If im not supposed to do that what am I supposed to do?

putenv ('TZ=Europe/London');

This is my Signature: w00t

8 Aug 2012, 10:14 AM
#8
gilby avatar

gilby

Totally Zenned

Join Date:
Aug 2005
Location:
Vic, Oz
Posts:
1,816
Plugin Contributions:
0

Re: Orders coming in wrong date

panelcart:

ok im confused. all i did was edit the fit that had australia to the below and upload the file. If im not supposed to do that what am I supposed to do?

putenv ('TZ=Europe/London');Yes this is what you are supposed to do!

The mod you mentioned is composed of 3 files and is designed for the v1.3.?? series

In v.5.0
You ONLY upload the 2 you mentioned.
The 3rd file \includes\classes\db\query_factory.php is NOT uploaded in v1.5.0

8 Aug 2012, 10:16 AM
#9
panelcart avatar

panelcart

Zen Follower

Join Date:
Sep 2006
Posts:
125
Plugin Contributions:
0

Re: Orders coming in wrong date

ah ok i uploaded that a while back ill just upload the 1.5 version and overwrite it. thanks

This is my Signature: w00t