Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Date & time settings


brandon206

Recommended Posts

Posted

I've done some hunting, but can't find anyone that's posed the exact question I have. I should point out that I'm a n00b to php, so this is my first crack at it.

 

I want to change the format of the date and time from European to American and everytime I make the change in 'english.php' the change doesn't take affect.

 

define('DATE_FORMAT_SHORT', 'm/%d/%Y');  // this is used for strftime()
define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime()
define('DATE_FORMAT', 'm/d/Y'); // this is used for date()
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');

////
// 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);
 }

 

That's what I have, but it still puts the date format as: Thursday 09 March, 2006

 

Here's my store (still being built): http://wearedepthrecordings.com/catalog/index.php

 

Any ideas?

Posted

The only options I have in localization are:

Currencies

Languages

Orders Status

 

None of which allow for setting to date/time.

Posted

you have to change the format regardless.

 

like:

define('DATE_FORMAT_LONG', '%Y, %B %A %d'); // this is used for strftime()

Archived

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

×
×
  • Create New...