This topic contains 4 replies, has 2 voices, and was last updated by mario.pinho 5 years, 10 months ago.
- Topic
Hi,
In locale pt_BR, dates are been displayed incorrectly. Dates are been displayed as “06 De jun De 2018” when the correct is “06 de jun de 2018” as per PHP IntlDateFormatter. While it is not a big deal, the real problem is in datepicker thats picks a wrong date, as below:
Inspecting code generate, you can see the locale.settings variable has a wrong values for jquery_ui, moment and php (intl is fine):
123456789101112require({config: {'orolocale/js/locale-settings': {defaults: {"locale":"en","language":"en","country":"US","currency":"USD"},settings: {"locale":"pt_BR","language":"pt_BR","country":"BR","currency":"BRL","timezone":"America\/Sao_Paulo","timezone_offset":"-03:00","format_address_by_address_country":true,"apiKey":"AIzaSyBX2aSeriuXdf-GWRhzxDI9w8wQzBUhpQU","unit":{"temperature":"celsius","wind_speed":"kilometers_per_hour"},"format":{"datetime":{"jquery_ui":{"day":"","date":"d d M d yy","time":"HH:mm","datetime":"d d M d yy HH:mm"},"intl":{"day":"","date":"d 'de' MMM 'de' y","time":"HH:mm","datetime":"d 'de' MMM 'de' y HH:mm"},"moment":{"day":"","date":"D [De] MMM [De] YYYY","time":"HH:mm","datetime":"D [De] MMM [De] YYYY HH:mm"},"php":{"day":"","date":"j j M j Y","time":"H:i","datetime":"j j M j Y H:i"}},....Where the correct should be:
1234"format":{"datetime":{"jquery_ui":{"day":"","date":"d 'de' M 'de' yy","time":"HH:mm","datetime":"d 'de' M 'de' yy HH:mm"},"intl":{"day":"","date":"d 'de' MMM 'de' y","time":"HH:mm","datetime":"d 'de' MMM 'de' y HH:mm"},"moment":{"day":"","date":"D [de] MMM [de] YYYY","time":"HH:mm","datetime":"D [de] MMM [de] YYYY HH:mm"},"php":{"day":"","date":"j 'de' M 'de' Y","time":"H:i","datetime":"j 'de' M 'de' Y H:i"}},May I missing something in configuration?
Also, how can I chance default format for a pattern like ‘dd/MM/yyyy’ in whole site context?
Regards,
The forum ‘OroCommerce’ is closed to new topics and replies.