Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Changing date & time


noosanet

Recommended Posts

Posted

I am wanting to change the date & time that apear on the orders.

The website is hosted in U.S.A but the clients and owners of the site are based in Australia.

Is there anyway to set the date and time so it is closer to the time the order was placed in Australia?

 

Thanks to everyone who has worked on this project. It is fantastic :-)

Posted

I am in exactly the same position! My site is hosted in the US but I want my times in Australian EST. If there is not a contribution I will be looking at doing this myself. Hopefully someone has encountered this issue before though.

Dan

  • 2 weeks later...
Posted

also i am in the same situation. my server is in the U.S. but i want to show the Japanese date and time. I thought this would have been more common issue people might have had.. if there is a contribution, i would appreciate if someone could point me there. thanks!

Posted

You might contact your webhost in catalog/includes/languages/english.php

I found this entry

 

// look in your $PATH_LOCALE/locale directory for available locales

// or type locale -a on the server.

// Examples:

// on RedHat try 'en_US'

// on FreeBSD try 'en_US.ISO_8859-1'

// on Windows try 'en', or 'English'

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

 

////

// Return date in raw format

// $date should be in format mm/dd/yyyy

// raw date is in format YYYYMMDD, or DDMMYYYY

function tep_date_raw($date, $reverse = false) {

if ($reverse) {

return substr($date, 3, 2) . substr($date, 0, 2) . substr($date, 6, 4);

} else {

return substr($date, 6, 4) . substr($date, 0, 2) . substr($date, 3, 2);

}

}

 

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)

define('LANGUAGE_CURRENCY', 'USD');

 

// Global entries for the <html> tag

define('HTML_PARAMS','dir="LTR" lang="en"');

 

// charset for web pages and emails

define('CHARSET', 'iso-8859-1');

 

I'm sure that this is something that can be set by the host for you..

  • 2 weeks later...

Archived

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

×
×
  • Create New...