Forums / Managing Customers and Orders / Customer order confirmation time is incorrect in Admin

Customer order confirmation time is incorrect in Admin

Views: 1,430

Results 1 to 6 of 6
24 Jun 2014, 11:07 AM
#1
benxp avatar

benxp

New Zenner

Join Date:
Jul 2005
Posts:
43
Plugin Contributions:
0

Customer order confirmation time is incorrect in Admin

Hi There, I am using V1.5.1. I have changed php.ini file to make correct setting for timezone. When I log in Adamin page I can see the time is correct. But the order placed by customer is still showing the host server time in America. And customer also see the server time instead of local time but Email time is correct

I DO searched in this forum but it looks like cannot find a good solution and also try to search a plug in for v1.5.1 and fail.

Is there anybody can tell me where I should edit, or which plug in I should use to solve the issue? Appreciate.

24 Jun 2014, 11:19 AM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Customer order confirmation time is incorrect in Admin

Have you tried this? I haven't used it, so I don't know if it works with 1.5.1.

http://www.zen-cart.com/downloads.php?do=file&id=1236

24 Jun 2014, 11:52 AM
#3
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Customer order confirmation time is incorrect in Admin

stevesh:

Have you tried this? I haven't used it, so I don't know if it works with 1.5.1.

http://www.zen-cart.com/downloads.php?do=file&id=1236

Didn't work for me in a 1.3.9 > 1.5.1 upgrade.

I fixed that by adding

date_default_timezone_set("Australia/Brisbane");

to my includes/languages/MY_TEMPLATE/english.php file and the corresponding english.php file in admin, somewhere at the top of those files.

OFC you need to replace 'Australia/Brisbane' with your proper define.

List of Supported Timezones can be found here:

http://www.php.net//manual/en/timezones.php

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

24 Jun 2014, 12:38 PM
#4
benxp avatar

benxp

New Zenner

Join Date:
Jul 2005
Posts:
43
Plugin Contributions:
0

Re: Customer order confirmation time is incorrect in Admin

I add the code to includes/languages/MY_TEMPLATE/english.php also admin/includes/languages/english.php with same time zone as the server defined now but stil america time for order confirmation in admin area , but time on Email is correct local time .... is there any other place need to be changed?

24 Jun 2014, 9:26 PM
#5
frank18 avatar

frank18

Deceased

Join Date:
Nov 2007
Location:
Sunny Coast, Australia
Posts:
3,427
Plugin Contributions:
2

Re: Customer order confirmation time is incorrect in Admin

benxp:

I add the code to includes/languages/MY_TEMPLATE/english.php also admin/includes/languages/english.php with same time zone as the server defined now but stil america time for order confirmation in admin area , but time on Email is correct local time .... is there any other place need to be changed?

Hmmm - may be this post helps:

http://www.zen-cart.com/showthread.php?212952-Order-timestamp-doesn-t-match-server-time-even-though-the-timezone-is-correct&p=1243765#post1243765

NOTE: We are sorry that Frank is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

28 Jun 2014, 11:55 PM
#6
benxp avatar

benxp

New Zenner

Join Date:
Jul 2005
Posts:
43
Plugin Contributions:
0

Re: Customer order confirmation time is incorrect in Admin

That works!!!