Forums / Managing Customers and Orders / Order date on Invoice is server date/time

Order date on Invoice is server date/time

Started by kenton on 16 Feb 2012, 3:22 AM · Views: 1,243

Results 1 to 4 of 4
16 Feb 2012, 3:22 AM
#1
kenton avatar

kenton

New Zenner

Join Date:
Sep 2011
Posts:
38
Plugin Contributions:
0

Order date on Invoice is server date/time

Hello

My website is being hosted in the USA but I am in Australia.

It looks like the Order Date on the invoice is being generated from the server system date time.

I have someone claiming that an order was put in on Friday because the invoice states that, but the emails (and paypal records) show Saturday morning (11:14am) was the actual order date/time.

How can I get the invoices to show the correct day according to Australian Eastern Standard (Daylight at the moment) Time?

Thanks.
Kenton

16 Feb 2012, 11:41 AM
#2
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Order date on Invoice is server date/time

Kenton:

My website is being hosted in the USA but I am in Australia.

How's this, coded with care just for you :)

http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=1864

Cheers
Rod

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

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

17 Feb 2012, 1:11 AM
#3
kenton avatar

kenton

New Zenner

Join Date:
Sep 2011
Posts:
38
Plugin Contributions:
0

Re: Order date on Invoice is server date/time

Thanks HEAPS for coding a mod just for me but ........
Got up to "Upload this file to the admin." but the date/time didn't change. You say not to continue so I didn't.

To confirm, I copied the (modified) time_zone_fix.php file to my admin directory. This is correct?

(I modified the php file to be Sydney instead of Melbourne as per php.net .... putenv ('TZ=Australia/Sydney');

Pehaps it's my server ... here's the details

Server OS: Linux 2.6.32.8-grsec-2.1.14-modsign-xeon-64
Database: MySQL 5.1.53-log
Server Date: 16/02/2012 17:01:43
Database Date: 16/02/2012 17:01:43
HTTP Server: Apache
PHP Version: 5.2.17 (Zend: 2.2.0)
PHP Memory Limit: 90M PHP Safe Mode: Off
PHP File Uploads: On
Max Size: 7M POST Max Size: 8M
Database Data Size: 1,128 kB
Database Index Size: 621 kB

Thanks
Kenton

28 Feb 2012, 5:22 AM
#4
cybagirl avatar

cybagirl

Zen Follower

Join Date:
Jul 2009
Posts:
119
Plugin Contributions:
0

Re: Order date on Invoice is server date/time

Kenton:

Thanks HEAPS for coding a mod just for me but ........
Got up to "Upload this file to the admin." but the date/time didn't change. You say not to continue so I didn't.

Did you upload the file to the correct directory and did you upload the directories and files from the includes directory as well? As these files need to be uploaded for the mod to work.

Also who told you not to continue?

When installing mods it is always best to upload the directories as well as the files this way everything is intact. But don't forget to rename the admin and your template directory if the instructions tell you to.

For example in this mod there is a directory called "YOUR_RENAMED_ADMIN" you must rename this to the same name that your admin folder is using on the server. Once you have done this it's just a simple process of uploading the directories and files from the mod.