Originally Posted by
jolla
ok. I'm using the italian version. I would love to keep the dd/mm/yyyy format. As of now that doesnt work. The search has to be done using the US mm/dd/yyyy format. Which format are you currently using?
Ok i thought you are Dutch, sorry my mistake.
Please look in italian.php in /includes/languages/italian(?).php
There must be some part like this:
Code:
// look in your $PATH_LOCALE/locale directory for available locales..
// 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()
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
if (!function_exists('zen_date_raw')) {
function zen_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);
}
}
}
Change that to (after you make backup!!):
Code:
@setlocale(LC_TIME, 'it_IT.ISO_8859-1');
define('DATE_FORMAT_SHORT', '%d/%m/%Y');
define('DATE_FORMAT_LONG', '%A %d %B, %Y');
define('DATE_FORMAT', 'd/m/Y');
define('DATE_TIME_FORMAT', DATE_FORMAT_SHORT . ' %H:%M:%S');
////
if (!function_exists('zen_date_raw')) {
function zen_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);
}
}
}
Bookmarks