sbnmco Posted January 17, 2004 Share Posted January 17, 2004 This is a really silly one I am sure, but one that is really bugging me, it is in two parts - and I know that fixing one will undoubtedly fix the other The time is out by 6 hours, it is now 9:30 in the evenings, and osCommerce says that it is about 3:30, also the date is MM/DD/YYYY and I NEED it to be DD/MM/YYYY as I am based in England, Uk. HELP !! :P Thanks in advance, and if you need cheap ink cartridges check out www.sbnm.co.uk, thanks Rodney, this time next year we'll be millionaires Link to comment Share on other sites More sharing options...
241 Posted January 17, 2004 Share Posted January 17, 2004 change catalog/includes/languages/english.php to this @setlocale(LC_TIME, 'en_UK.ISO_8859-1'); 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'); //// // Return date in raw format // $date should be in format dd/mm/yyyy // raw date is in format YYYYMMDD, or DDMMYYYY 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); } } // if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language) define('LANGUAGE_CURRENCY', 'GBP'); // Global entries for the <html> tag define('HTML_PARAMS','dir="LTR" lang="en"'); // charset for web pages and emails define('CHARSET', 'iso-8859-1'); and this line // text for date of birth example define('DOB_FORMAT_STRING', 'dd/mm/yyyy'); then these lines define('ENTRY_DATE_OF_BIRTH_ERROR', 'Your Date of Birth must be in this format: DD/MM/YYYY (eg 21/05/1970)'); define('ENTRY_DATE_OF_BIRTH_TEXT', '* (eg. 21/05/1970)'); No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
sbnmco Posted January 17, 2004 Author Share Posted January 17, 2004 Thanks, thats brilliant in the shop front, but what about the backend - ie within the oscommerce order / maintenance screens too - if anyone could sort that then I would be in their debt forever :lol: Rodney, this time next year we'll be millionaires Link to comment Share on other sites More sharing options...
♥stubbsy Posted January 17, 2004 Share Posted January 17, 2004 you need to do the same thing in admin/includes/languages/english.php stubbsy Link to comment Share on other sites More sharing options...
sbnmco Posted January 17, 2004 Author Share Posted January 17, 2004 That didn't seem to work, I am sure I did everything as I did previously? any further advice thanks in advance Nigel Rodney, this time next year we'll be millionaires Link to comment Share on other sites More sharing options...
sbnmco Posted January 17, 2004 Author Share Posted January 17, 2004 Scratch that, it did work !! Just needed to refresh what I was doing !! thanks !! REALLY REALLY appreciate it !! Nigel :D Rodney, this time next year we'll be millionaires Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.