Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

dd.mm.yyyy


Guest

Recommended Posts

Hi all,

 

this is the format I need, anyone with idea hot to change it from mm/dd/yyyy to dd.mm.yyyy

I did not find similar question in forum so far

 

Regards

Link to comment
Share on other sites

Open includes/languages/english.php (and/or your_language.php). At the top of the page you will find:

 

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');

 

You can rearrange the variables to suit your needs. The variables are explained in the chart below. The chart is from Kevin Yank's "Build Your Own Databse Driven Website"

 

 

Date_Format.jpg

Link to comment
Share on other sites

Hi,

 

I know this but when new client try to register again mm/dd/yyyy format is required.

 

In my language.php values I have

 

setlocale(LC_ALL, 'Croatian');

define('CHARSET', 'windows-1250');

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');

 

function tep_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);

}

}

 

 

define('LANGUAGE_CURRENCY', 'kn');

define('HTML_PARAMS','dir="LTR" lang="hr"');

 

 

And also I have problem with charset, my browser does not automatically recognize charset I need to chande it manually to CE windows encoding.

Link to comment
Share on other sites

Hi M@rcel,

 

I already have lines you wrote in my file but there is no way that registration pass OK until I enter date like mm/dd/yyyy

 

My entire file looks like this;

 

 

<?php

 

setlocale(LC_ALL, 'Croatian');

define('CHARSET', 'windows-1250');

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');

function tep_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);

}

}

// if USE_DEFAULT_LANGUAGE_CURRENCY is true, use the following currency, instead of the applications default currency (used when changing language)

define('LANGUAGE_CURRENCY', 'kn');

define('HTML_PARAMS','dir="LTR" lang="hr"');

define('TITLE', 'AA web shop');

define('HEADER_TITLE_CREATE_ACCOUNT', 'Napravi svoj account');

define('HEADER_TITLE_MY_ACCOUNT', 'Moj Account');

define('HEADER_TITLE_CART_CONTENTS', 'Sadr?aj ko?arice');

define('HEADER_TITLE_CHECKOUT', 'Potvrdi i plati');

define('HEADER_TITLE_TOP', 'Početak');

define('HEADER_TITLE_CATALOG', 'Katalog');

define('HEADER_TITLE_LOGOFF', 'Odjavi se');

define('HEADER_TITLE_LOGIN', 'Prijavi se');

define('FOOTER_TEXT_REQUESTS_SINCE', 'posjeta od');

define('MALE', 'Mu?ko');

define('FEMALE', '?ensko');

define('MALE_ADDRESS', 'Gospodin');

define('FEMALE_ADDRESS', 'Gospođa');

define('DOB_FORMAT_STRING', 'dd.mm.yyyy');

define('BOX_HEADING_CATEGORIES', 'Grupe artikala');

define('BOX_HEADING_MANUFACTURERS', 'Proizvođači');

define('BOX_HEADING_WHATS_NEW', 'Noviteti');

define('BOX_HEADING_SEARCH', 'Pronađi');

define('BOX_SEARCH_TEXT', 'Unesite pojam ili riječ koju tra?ite.');

define('BOX_SEARCH_ADVANCED_SEARCH', 'Detaljna pretraga');

define('BOX_HEADING_SPECIALS', 'Na sni?enju');

define('BOX_HEADING_REVIEWS', 'Va?i stavovi');

define('BOX_REVIEWS_WRITE_REVIEW', 'Napi?ite Va?e mi?ljenje ili preporuku!');

define('BOX_REVIEWS_NO_REVIEWS', 'Trenutno nema niti jednog komentara ili preporuke');

define('BOX_REVIEWS_TEXT_OF_5_STARS', '%s od 5 zvjezdica!');

define('BOX_HEADING_SHOPPING_CART', 'Va?a ko?arica');

define('BOX_SHOPPING_CART_EMPTY', 'je prazna');

define('BOX_HEADING_CUSTOMER_ORDERS', 'Prethodne narud?be');

define('BOX_HEADING_BESTSELLERS', 'Najpopularniji');

define('BOX_HEADING_BESTSELLERS_IN', 'Najpopularniji u<br>  ');

define('BOX_HEADING_NOTIFICATIONS', 'Obavijesti');

define('BOX_NOTIFICATIONS_NOTIFY', 'Po?aljite mi novitete o <b>%s</b>');

define('BOX_NOTIFICATIONS_NOTIFY_REMOVE', 'Nemojte mi slati obavijesti o <b>%s</b>');

define('BOX_HEADING_MANUFACTURER_INFO', 'O proizvođaču');

define('BOX_MANUFACTURER_INFO_HOMEPAGE', '%s web site');

define('BOX_MANUFACTURER_INFO_OTHER_PRODUCTS', 'Ostali proizvodi');

define('BOX_HEADING_LANGUAGES', 'Jezici');

define('BOX_HEADING_CURRENCIES', 'Valute');

define('BOX_HEADING_INFORMATION', 'Informacije');

define('BOX_INFORMATION_PRIVACY', 'Za?tita privatnosti');

define('BOX_INFORMATION_CONDITIONS', 'Uvjeti kori?tenja');

define('BOX_INFORMATION_SHIPPING', 'Dostava i povrat robe');

define('BOX_INFORMATION_CONTACT', 'Kontaktirajte nas');

define('BOX_HEADING_TELL_A_FRIEND', 'Po?aljite preporuku');

define('BOX_TELL_A_FRIEND_TEXT', 'Recite nekome koga znate o ovom.');

define('CHECKOUT_BAR_DELIVERY', 'Podaci za dostavu');

define('CHECKOUT_BAR_PAYMENT', 'Podaci za plaćanje');

define('CHECKOUT_BAR_CONFIRMATION', 'Potvrda');

define('CHECKOUT_BAR_FINISHED', 'Gotovo!');

define('PULL_DOWN_DEFAULT', 'Odaberite');

define('TYPE_BELOW', 'Upi?ite ispod');

define('JS_ERROR', 'Gre?ka prilikom ispunjavanja obrasca!nMolim Vas da ispravite sljedeće:nn');

define('JS_REVIEW_TEXT', '* 'Va? stav' mora imati najmanje ' . REVIEW_TEXT_MIN_LENGTH . ' slova.n');

define('JS_REVIEW_RATING', '* Morate dati ocjenu ovom proizvodu da biste napisali Va?e mi?ljenje.n');

define('JS_GENDER', '* Spol mora biti definiran.n');

define('JS_FIRST_NAME', '* Ime mora sadr?avati najmanje ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' slova.n');

define('JS_LAST_NAME', '* Prezime mora sadr?avati najmanje ' . ENTRY_LAST_NAME_MIN_LENGTH . ' slova.n');

define('JS_DOB', '* Datum rođenja mora biti u obliku: xx.xx.xxxx (day.month.year).n');

define('JS_EMAIL_ADDRESS', '* E-Mail adresa mora sadr?avati najmanje ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' slova.n');

define('JS_ADDRESS', '* Adresa mora sadr?avati najmanje ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . ' slova.n');

define('JS_POST_CODE', '* Po?tanski broj mora sadr?avati najmanje ' . ENTRY_POSTCODE_MIN_LENGTH . ' znamenkasti broj.n');

define('JS_CITY', '* Grad mora sadr?avati najmanje ' . ENTRY_CITY_MIN_LENGTH . ' slova.n');

define('JS_STATE', '* ?upanija mora biti unesena.n');

define('JS_COUNTRY', '* Dr?ava mora biti unesena.n');

define('JS_TELEPHONE', '* Telefon mora imati najmanje ' . ENTRY_TELEPHONE_MIN_LENGTH . ' broja.n');

define('JS_PASSWORD', '* Polja za Password i Potvrdu passworda moraju imati najmanje ' . ENTRY_PASSWORD_MIN_LENGTH . ' znakova.n');

define('JS_ERROR_NO_PAYMENT_MODULE_SELECTED', '* Molimo Vas da odaberete način plaćanja.n');

define('JS_ERROR_SUBMITTED', 'Ova stranica je već poslana na obradu. Molimo Vad da kliknete Ok i pričekate da proces obrade bude zavr?en.');

define('ERROR_NO_PAYMENT_MODULE_SELECTED', 'Odaberite način plaćanja Va?e narud?be.');

define('CATEGORY_COMPANY', 'Podaci o tvrtki');

define('CATEGORY_PERSONAL', 'Va?i podaci');

define('CATEGORY_ADDRESS', 'Adresa');

define('CATEGORY_CONTACT', 'Podaci za kontakt');

define('CATEGORY_OPTIONS', 'Opcije');

define('CATEGORY_PASSWORD', 'Va? password');

define('ENTRY_COMPANY', 'Naziv tvrtke:');

define('ENTRY_COMPANY_ERROR', '');

define('ENTRY_COMPANY_TEXT', '');

define('ENTRY_GENDER', 'Spol:');

define('ENTRY_GENDER_ERROR', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_GENDER_TEXT', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_FIRST_NAME', 'Ime:');

define('ENTRY_FIRST_NAME_ERROR', ' <small><font color="#FF0000">min ' . ENTRY_FIRST_NAME_MIN_LENGTH . ' chars</font></small>');

define('ENTRY_FIRST_NAME_TEXT', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_LAST_NAME', 'Prezime:');

define('ENTRY_LAST_NAME_ERROR', ' <small><font color="#FF0000">min ' . ENTRY_LAST_NAME_MIN_LENGTH . ' chars</font></small>');

define('ENTRY_LAST_NAME_TEXT', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_DATE_OF_BIRTH', 'Datum rođenja:');

define('ENTRY_DATE_OF_BIRTH_ERROR', ' <small><font color="#FF0000">(npr. 24.06.1970)</font></small>');

define('ENTRY_DATE_OF_BIRTH_TEXT', ' <small>(npr. 21.09.1975) <font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_EMAIL_ADDRESS', 'e-mail adresa:');

define('ENTRY_EMAIL_ADDRESS_ERROR', ' <small><font color="#FF0000">min ' . ENTRY_EMAIL_ADDRESS_MIN_LENGTH . ' chars</font></small>');

define('ENTRY_EMAIL_ADDRESS_CHECK_ERROR', ' <small><font color="#FF0000">Izgleda da e-mail adresa koju ste unijeli nije ispravna!</font></small>');

define('ENTRY_EMAIL_ADDRESS_ERROR_EXISTS', ' <small><font color="#FF0000">ista e-mail adresa već postoji!</font></small>');

define('ENTRY_EMAIL_ADDRESS_TEXT', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_STREET_ADDRESS', 'Adresa:');

define('ENTRY_STREET_ADDRESS_ERROR', ' <small><font color="#FF0000">min ' . ENTRY_STREET_ADDRESS_MIN_LENGTH . ' chars</font></small>');

define('ENTRY_STREET_ADDRESS_TEXT', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_SUBURB', 'Suburb:');

define('ENTRY_SUBURB_ERROR', '');

define('ENTRY_SUBURB_TEXT', '');

define('ENTRY_POST_CODE', 'Po?tanski broj:');

define('ENTRY_POST_CODE_ERROR', ' <small><font color="#FF0000">min ' . ENTRY_POSTCODE_MIN_LENGTH . ' chars</font></small>');

define('ENTRY_POST_CODE_TEXT', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_CITY', 'Grad:');

define('ENTRY_CITY_ERROR', ' <small><font color="#FF0000">min ' . ENTRY_CITY_MIN_LENGTH . ' chars</font></small>');

define('ENTRY_CITY_TEXT', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_STATE', '?upanija:');

define('ENTRY_STATE_ERROR', '');

define('ENTRY_STATE_TEXT', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_COUNTRY', 'Dr?ava:');

define('ENTRY_COUNTRY_ERROR', '');

define('ENTRY_COUNTRY_TEXT', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_TELEPHONE_NUMBER', 'Telefon:');

define('ENTRY_TELEPHONE_NUMBER_ERROR', ' <small><font color="#FF0000">min ' . ENTRY_TELEPHONE_MIN_LENGTH . ' chars</font></small>');

define('ENTRY_TELEPHONE_NUMBER_TEXT', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_FAX_NUMBER', 'Fax:');

define('ENTRY_FAX_NUMBER_ERROR', '');

define('ENTRY_FAX_NUMBER_TEXT', '');

define('ENTRY_NEWSLETTER', 'Newsletter:');

define('ENTRY_NEWSLETTER_TEXT', '');

define('ENTRY_NEWSLETTER_YES', '?elim primati');

define('ENTRY_NEWSLETTER_NO', 'Ne ?elim primati');

define('ENTRY_NEWSLETTER_ERROR', '');

define('ENTRY_PASSWORD', 'Password:');

define('ENTRY_PASSWORD_CONFIRMATION', 'Potvrdi password:');

define('ENTRY_PASSWORD_CONFIRMATION_TEXT', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('ENTRY_PASSWORD_ERROR', ' <small><font color="#FF0000">min ' . ENTRY_PASSWORD_MIN_LENGTH . ' chars</font></small>');

define('ENTRY_PASSWORD_TEXT', ' <small><font color="#AABBDD">obavezan unos</font></small>');

define('PASSWORD_HIDDEN', '--HIDDEN--');

define('TEXT_RESULT_PAGE', 'Pronađenih stranica:');

define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS', 'Prikaz <b>%d</b> - <b>%d</b> (od ukupno <b>%d</b> proizvoda)');

define('TEXT_DISPLAY_NUMBER_OF_ORDERS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> orders)');

define('TEXT_DISPLAY_NUMBER_OF_REVIEWS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> reviews)');

define('TEXT_DISPLAY_NUMBER_OF_PRODUCTS_NEW', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> new products)');

define('TEXT_DISPLAY_NUMBER_OF_SPECIALS', 'Displaying <b>%d</b> to <b>%d</b> (of <b>%d</b> specials)');

define('PREVNEXT_TITLE_FIRST_PAGE', 'Prva stranica');

define('PREVNEXT_TITLE_PREVIOUS_PAGE', 'Prethodna stranica');

define('PREVNEXT_TITLE_NEXT_PAGE', 'Sljedeća stranica');

define('PREVNEXT_TITLE_LAST_PAGE', 'Posljednja stranica');

define('PREVNEXT_TITLE_PAGE_NO', 'Stranica %d');

define('PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE', 'Previous Set of %d Pages');

define('PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE', 'Next Set of %d Pages');

define('PREVNEXT_BUTTON_FIRST', '<<FIRST');

define('PREVNEXT_BUTTON_PREV', '[<< Prethodna]');

define('PREVNEXT_BUTTON_NEXT', '[sljedeća >>]');

define('PREVNEXT_BUTTON_LAST', 'POSLJEDNJA>>');

define('IMAGE_BUTTON_ADD_ADDRESS', 'Dodaj adresu');

define('IMAGE_BUTTON_ADDRESS_BOOK', 'Adresar');

define('IMAGE_BUTTON_BACK', 'Natrag');

define('IMAGE_BUTTON_CHANGE_ADDRESS', 'Promijeni adresu');

define('IMAGE_BUTTON_CHECKOUT', 'Checkout');

define('IMAGE_BUTTON_CONFIRM_ORDER', 'Potvrdi narud?bu');

define('IMAGE_BUTTON_CONTINUE', 'Nastavi');

define('IMAGE_BUTTON_CONTINUE_SHOPPING', 'Nastavi shopping');

define('IMAGE_BUTTON_DELETE', 'Obri?i');

define('IMAGE_BUTTON_EDIT_ACCOUNT', 'Prika?i account');

define('IMAGE_BUTTON_HISTORY', 'Prethodne narud?be');

define('IMAGE_BUTTON_LOGIN', 'Sign In');

define('IMAGE_BUTTON_IN_CART', 'In Cart');

define('IMAGE_BUTTON_NOTIFICATIONS', 'Notifications');

define('IMAGE_BUTTON_QUICK_FIND', 'Quick Find');

define('IMAGE_BUTTON_REMOVE_NOTIFICATIONS', 'Remove Notifications');

define('IMAGE_BUTTON_REVIEWS', 'Reviews');

define('IMAGE_BUTTON_SEARCH', 'Tra?i');

define('IMAGE_BUTTON_SHIPPING_OPTIONS', 'Shipping Options');

define('IMAGE_BUTTON_TELL_A_FRIEND', 'Tell a Friend');

define('IMAGE_BUTTON_UPDATE', 'Update');

define('IMAGE_BUTTON_UPDATE_CART', 'Update Cart');

define('IMAGE_BUTTON_WRITE_REVIEW', 'Write Review');

define('ICON_ARROW_RIGHT', 'more');

define('ICON_CART', 'In Cart');

define('ICON_WARNING', 'UPOZORENJE');

define('TEXT_GREETING_PERSONAL', 'Pozdrav <span class="greetUser">%s!</span> ?eli? li vidjeti <a href="%s"><u>nove proizvode</u></a> u na?oj ponudi?');

define('TEXT_GREETING_PERSONAL_RELOGON', '<small>If you are not %s, please <a href="%s"><u>log yourself in</u></a> with your account information.</small>');

define('TEXT_GREETING_GUEST', 'Dobrodo?li <span class="greetUser">neregistrirani korisniče</span> ?elite li se <a href="%s"><u>prijaviti</u></a>? Ili ?elite <a href="%s"><u>otvoriti novi account</u></a> ako niste registrirani korisnik?');

define('TEXT_SORT_PRODUCTS', 'Sortiraj proizvode ');

define('TEXT_DESCENDINGLY', 'A-Z');

define('TEXT_ASCENDINGLY', 'Z-A');

define('TEXT_BY', ' by ');

define('TEXT_REVIEW_BY', 'by %s');

define('TEXT_REVIEW_WORD_COUNT', '%s riječi');

define('TEXT_REVIEW_RATING', 'Ocjena: %s [%s]');

define('TEXT_REVIEW_DATE_ADDED', 'Datum unosa: %s');

define('TEXT_NO_REVIEWS', 'Nema komentara o proizvodu.');

define('TEXT_NO_NEW_PRODUCTS', 'Nema novih proizvoda.');

define('TEXT_UNKNOWN_TAX_RATE', 'Nepostojeća porezna stopa');

define('TEXT_REQUIRED', 'Obavezan unos');

define('ERROR_TEP_MAIL', '<font face="Verdana, Arial" size="2" color="#ff0000"><b><small>TEP ERROR:</small> E-mail ne mo?e biti poslan putem definiranog SMTP servera. Provjerite Va?u php.ini konfiguraciju i podesite SMTP ako je potrebno.</b></font>');

define('WARNING_INSTALL_DIRECTORY_EXISTS', 'UPOZORENJE: Folder sa datotekama za instalaciju postoji u: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/install. Please remove this directory for security reasons.');

define('WARNING_CONFIG_FILE_WRITEABLE', 'UPOZORENJE: I am able to write to the configuration file: ' . dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.');

define('WARNING_SESSION_DIRECTORY_NON_EXISTENT', 'UPOZORENJE: The sessions directory does not exist: ' . tep_session_save_path() . '. Sessions will not work until this directory is created.');

define('WARNING_SESSION_DIRECTORY_NOT_WRITEABLE', 'UPOZORENJE: I am not able to write to the sessions directory: ' . tep_session_save_path() . '. Sessions will not work until the right user permissions are set.');

define('WARNING_SESSION_AUTO_START', 'UPOZORENJE: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server.');

define('WARNING_DOWNLOAD_DIRECTORY_NON_EXISTENT', 'UPOZORENJE: The downloadable products directory does not exist: ' . DIR_FS_DOWNLOAD . '. Downloadable products will not work until this directory is valid.');

define('TEXT_CCVAL_ERROR_INVALID_DATE', 'Datum do kojeg vrijedi Va?a kreditna kartica nije ispravan.<br>Provjerite datum valjanosti i poku?ajte ponovo.');

define('TEXT_CCVAL_ERROR_INVALID_NUMBER', 'Broj kreditne kartice koji ste unijeli nije ispravan.<br>Provjerite broj kreditne kartice i poku?ajte ponovo.');

define('TEXT_CCVAL_ERROR_UNKNOWN_CARD', 'Prve četri znamenke kreditne kartice koju ste unijeli su: %s<br>Ako je taj broj točan, na?alost ne primamo tu vrstu kreditnih kartica.<br>Ako ste pogrije?ili kod unosa molimo Vas da poku?ate ponovo.');

define('FOOTER_TEXT_BODY', 'Copyright © 2003 <a href="http://alarmautomatika.com" target="_blank">AA d.o.o.</a><br>Powered by <a href="http://alarmautomatika.com" target="_blank">AA</a>');

?>

Link to comment
Share on other sites

Try this:

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);

 }

}

Greetings from Marcel

|Current version|Documentation|Contributions|

Link to comment
Share on other sites

  • 3 months later...

Hi,

 

I try to change:

 

// 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, 'pt_PT');

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');

 

...

 

But no Portuguese!

 

I tried:

 

setlocale(LC_TIME, 'pt_PT'); and

setlocale(LC_TIME, 'pt'); and

setlocale(LC_TIME, 'pt_PT.ISO_8859-3');

 

and it's the same with english date!

 

What can i try more?

 

:)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...