Or making the store UK specific:
Change some bits in english.php to look like this:
setlocale(LC_TIME, 'en_GB.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 strftime()
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, 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
define('JS_DOB', '* The 'Date of Birth' entry must be in the format: xx/xx/xxxx (day/month/year).n');
define('ENTRY_DATE_OF_BIRTH_ERROR', ' <small><font color="#FF0000">(eg. 21/05/1970)</font></small>');
define('ENTRY_DATE_OF_BIRTH_TEXT', ' <small>(eg. 21/05/1970) <font color="#AABBDD">required</font></small>');
Then set up your GBP currencies using Admin.
Latest News: (loading..)
dd/mm/yyy not mm/dd/yyy
Started by Ian-San, Feb 07 2003, 20:43
5 replies to this topic
#1
Posted 07 February 2003, 20:43
Ian-san
Flawlessnet
Flawlessnet
#2
Posted 08 February 2003, 12:39
Not forgetting:
// text for date of birth example
define('DOB_FORMAT_STRING', 'dd/mm/yyyy');
John
// text for date of birth example
define('DOB_FORMAT_STRING', 'dd/mm/yyyy');
John
#3
Posted 08 February 2003, 14:09
Quote
Not forgetting:
// text for date of birth example
define('DOB_FORMAT_STRING', 'dd/mm/yyyy');
John
// text for date of birth example
define('DOB_FORMAT_STRING', 'dd/mm/yyyy');
John
Ooops! Lazy me .. :oops:
I cut this from an earlier post of mine without checking it... thanks.
Ian-san
Flawlessnet
Flawlessnet
#4
Posted 10 March 2003, 23:41
i try menny time to chenge it but now you did it
tanx for the tip
tanx for the tip
#5
Posted 10 March 2003, 23:43
i so that line when i scroll down
#6
Posted 22 April 2003, 10:19
Thank you very much I used this tip for italian version 8)














