Changing the date format in changing the language in joomla

General questions regarding the use of languages in Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
Dmitry-T
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Jan 27, 2021 10:44 am

Changing the date format in changing the language in joomla

Post by Dmitry-T » Wed Jan 27, 2021 11:04 am

When changing the language of joomla (3.9.24) when displaying a blog on the screen, the date format changes from Jan 18, 2021 to ПнPMMSKE_января+0300RянвPMMSK_MSK+03:0001. How to fix it?

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30915
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Changing the date format in changing the language in joomla

Post by Per Yngve Berg » Wed Jan 27, 2021 11:30 am

The date format is in the language files

What language pack have you installed?

Dmitry-T
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Jan 27, 2021 10:44 am

Re: Changing the date format in changing the language in joomla

Post by Dmitry-T » Wed Jan 27, 2021 10:44 pm

via the joomla extension manager language pack ru-RU

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Changing the date format in changing the language in joomla

Post by infograf768 » Sat Jan 30, 2021 7:05 am

Are you using the default Joomla core blog template or is it an override in your template?
The format for the date for blog item in frontend is `DATE_FORMAT_LC3`
for Russian pack
`DATE_FORMAT_LC3="d F Y"`
```
; Months

JANUARY_SHORT="янв"
JANUARY="января"
FEBRUARY_SHORT="фев"
FEBRUARY="февраля"
MARCH_SHORT="март"
MARCH="марта"
APRIL_SHORT="апр"
APRIL="апреля"
MAY_SHORT="мая"
MAY="мая"
JUNE_SHORT="июнь"
JUNE="июня"
JULY_SHORT="июль"
JULY="июля"
AUGUST_SHORT="авг"
AUGUST="августа"
SEPTEMBER_SHORT="сен"
SEPTEMBER="сентября"
OCTOBER_SHORT="окт"
OCTOBER="октября"
NOVEMBER_SHORT="нояб"
NOVEMBER="ноября"
DECEMBER_SHORT="дек"
DECEMBER="декабря"

;Days of the Week
SAT="Сб"
SATURDAY="Суббота"
SUN="Вс"
SUNDAY="Воскресенье"
MON="Пн"
MONDAY="Понедельник"
TUE="Вт"
TUESDAY="Вторник"
WED="Ср"
WEDNESDAY="Среда"
THU="Чт"
THURSDAY="Четверг"
FRI="Пт"
FRIDAY="Пятница"
```
Therefore the result you get is pretty weird... `MSK` is Moscow Time and should not display at all...
Please post a screenshot of the page concerned.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Dmitry-T
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Jan 27, 2021 10:44 am

Re: Changing the date format in changing the language in joomla

Post by Dmitry-T » Sat Jan 30, 2021 9:01 am

Используется joomla 3.8.7, который шел с поставкой шаблона компании template monster. Upgrade 3.9.24.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Changing the date format in changing the language in joomla

Post by infograf768 » Sat Jan 30, 2021 9:48 am

Please write in English in the English forums.
Switch to Protostar as site template to check the results as we can't deal with 3rd party templates.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group

Dmitry-T
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Wed Jan 27, 2021 10:44 am

Re: Changing the date format in changing the language in joomla

Post by Dmitry-T » Sun Jan 31, 2021 7:17 pm

Used joomla 3.8.7, which came with the delivery of the template company template monster. Upgrade 3.9.24.

User avatar
infograf768
Joomla! Master
Joomla! Master
Posts: 19133
Joined: Fri Aug 12, 2005 3:47 pm
Location: **Translation Matters**

Re: Changing the date format in changing the language in joomla

Post by infograf768 » Mon Feb 01, 2021 9:40 am

I repeat:
Please check what happens by using Protostar as your default site template to see if the template is at stake.
Jean-Marie Simonet / infograf
---------------------------------
ex-Joomla Translation Coordination Team • ex-Joomla! Production Working Group


Locked

Return to “Language - Joomla! 3.x”