secure Posted July 23, 2003 Posted July 23, 2003 Ok I have searched the forum try everything and came up with nothing.I have already set the locale time to TR(turkish) but still getting times in English format. any input? // 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, 'tr_TR.ISO_8859-9'); define('DATE_FORMAT_SHORT', '%d/%m/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%d %B %Y, %A'); // 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');
Guest Posted October 26, 2003 Posted October 26, 2003 Just you will do like this , everthing will ok.. For new version For date : ======================================== setlocale(LC_TIME, 'turkish'); define('DATE_FORMAT_SHORT', '%m/%d/%Y'); // this is used for strftime() define('DATE_FORMAT_LONG', '%d %B, %Y%A '); // 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'); =================================================== For crackter // charset for web pages and emails define('CHARSET', 'iso-8859-9');
Recommended Posts
Archived
This topic is now archived and is closed to further replies.