Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

date/time display


handle

Recommended Posts

Hi,

 

How do I change the date/time display output such that Orders Received display my Local time?

 

I am on a shared hosting environment and the Cart is registering the date and time of the Server on Orders. It so happens I have a time difference of +10 hours with the location of the Data Center.

 

Is there a way I can set the time of the Cart to display my local time on Orders etc..

 

Thank You

Handle

Link to comment
Share on other sites

Hi,

 

How do I change the date/time display output such that Orders Received display my Local time?

 

I am on a shared hosting environment and the Cart is registering the date and time of the Server on Orders. It so happens I have a time difference of +10 hours with the location of the Data Center.

 

Is there a way I can set the time of the Cart to display my local time on Orders etc..

 

Thank You

Handle

Have a look at the Server Timezone fix 1.0 contribution.

Link to comment
Share on other sites

  • 2 weeks later...

I would like to have the correct time showing on emails etc for my UK based store so this contribution looks just right.

 

On this line I know I have to change it to Europe/London

putenv("TZ=Australia/Sydney");

 

Do I need to change this line too?

@setlocale(LC_TIME, 'en_AU.ISO_8859-1');

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...