gabbs Posted January 20, 2007 Share Posted January 20, 2007 Ok I just can't figure this out. I'm trying to change the date format from MM/DD/YY to DD/MM/YY Now in the english.php i've changed the lines to: @setlocale(LC_TIME, 'en_GB'); define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%A %d %B, %Y'); // this is used for strftime() define('DATE_FORMAT', 'd/m/Y'); // this is used for date() define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S'); define('DOB_FORMAT_STRING', 'dd/mm/yyyy'); Do I need to change anything else? because it still thinks its american dates... Link to comment Share on other sites More sharing options...
tigergirl Posted January 20, 2007 Share Posted January 20, 2007 Hi there, It's ages since I changed this but I have a note here: in file includes/languages/english.php there are some numbers like this: 3,2 0,2 6,4 6,4 0,2 3,2 change it to 0,2 3,2 6,4 6,4 3,2 0,2 Back up first. There are posts on this but hard to find, you might need to do something in admin too (sorry can't remember) try to search for +date +format Good luck I'm feeling lucky today......maybe someone will answer my post! I do try and answer a simple post when I can just to give something back. ------------------------------------------------ PM me? - I'm not for hire Link to comment Share on other sites More sharing options...
wheeloftime Posted January 20, 2007 Share Posted January 20, 2007 Hi there,It's ages since I changed this but I have a note here: in file includes/languages/english.php there are some numbers like this: 3,2 0,2 6,4 6,4 0,2 3,2 change it to 0,2 3,2 6,4 6,4 3,2 0,2 Back up first. There are posts on this but hard to find, you might need to do something in admin too (sorry can't remember) try to search for +date +format Good luck What Tigergirls refers to is the tep_raw_date() function in your english.php file. To have osC show non-us dates you have to change it to: function tep_date_raw($date, $reverse = false) { if ($reverse) { return substr($date, 0, 2) . substr($date, 3, 2) . substr($date, 6, 4); } else { return substr($date, 6, 4) . substr($date, 3, 2) . substr($date, 0, 2); } } Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.