Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.



Recommended Posts

Hi guys. I would first like to say a huge thanks to all who help out us noobs with your experience. To date I have found your advice clear and concise and have had no problem which hasn't been resolved easily with your guidence.

Many many thanks.



I realise this may be a little vauge and you may need more info, but i have done something which now means that instead of the correct date and time being displayed I now get DATE_FORMAT_LONG instead.

I was trying to install a guest book on site and have obviously made an error somewhere along the line.


Does anywone know where i should be looking?


Many thanks



Link to comment
Share on other sites

it's ok, found it guys. had altertered accidently this part of the english php file.


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


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()




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



Link to comment
Share on other sites


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

  • Create New...