ultratom Posted March 19, 2004 Share Posted March 19, 2004 Hi, Is there a setting in Admin for changing date format from US to UK (DD/MM/YYYY)? I did a search and found nothing. TIA Tom Link to comment Share on other sites More sharing options...
241 Posted March 19, 2004 Share Posted March 19, 2004 If it is a more uk orientated site English Default catalog/includes/languages/english.php line# 19-45 @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'); then Line# 73 define('DOB_FORMAT_STRING', 'dd/mm/yyyy'); then line# 186-187 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)'); all line numbers are approximates as my code is modified. you need to do this in the admin/includes/languages/english.php as well 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...
mikeuk Posted March 19, 2004 Share Posted March 19, 2004 Hi Ultratom! I also had this problem and here is the solution to this problem: http://www.oscommerce.com/forums/index.php?&showtopic=33633&st=entry=109891 enjoy! Link to comment Share on other sites More sharing options...
ultratom Posted March 19, 2004 Author Share Posted March 19, 2004 Thanks Steve and Mikey, will look into both. Have a good weekend :) Link to comment Share on other sites More sharing options...
ausipodskins Posted May 12, 2004 Share Posted May 12, 2004 thanks for the tips. Is there a way that the time can be modified when the server is located in a different country to the osC shop? what I mean is this. I am in australia. My host server is in the US. I want to know the date and time an order was placed in my 'local time' and also when I have specials they should expire at midnight in my time. Is this an osC modification or something to be done via the host server? I'm not the only site being hosted on that server, of course. Link to comment Share on other sites More sharing options...
ausipodskins Posted May 12, 2004 Share Posted May 12, 2004 Found the answer to the tiime setting problem here: http://www.oscommerce.com/forums/index.php?sho...hl=date++format Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.