Page MenuHomePhabricator

Moment.js doesn't have a Chechen (ce) time format support and falls back to Russian, so Notifications are in an incorrect time format
Open, LowPublic

Description

http://pastenow.ru/Upload/Paste/Q954.png

Wrong time format. And the names of the months on the Russian.

Event Timeline

Krenair renamed this task from Notifications to Notification time format.Jun 22 2016, 12:40 AM

Hi @Umar, thanks for taking the time to report this!

Please describe here which time format you would expect / is the "right" one, and provide a link / URL to reproduce the problem (currently except for you, nobody knows which human language this bug report is about).

We have already set the time format (2016 ш. 22 июнь).

http://pastenow.ru/Upload/Paste/QC7L.png

Error of Chechen Wikipedia.

@Umar: Please provide a link / URL that allows reproducing the problem.

The language being Russian is a bit weird, but that could be a "fall back" if the original language has no specific translation. The format of the dates may be a bigger issue, though.

@Umar I can't look at the latest link you provided (it's in your own Special:Notifications page, requiring me to login) -- can you instead explain what you expect to see instead of what you see?

Take into account I can't actually read the language, so I am trying to help based on what may have gone wrong with the date format and translation.

If you can answer the following questions, it will really help:

  1. Can you tell me a translated version of the current format?
  2. What is the problem with the current format? What should the current format of the timestamp be instead?
  3. What language should the page display?

Thanks!

With uselang=ce, the issue is displayed as

Screen Shot 2016-06-24 at 11.21.21 AM.png (560×938 px, 60 KB)

The format should be e.g. "2016 ш. 22 июнь" ?

Etonkovidova Yes, you understood correctly.

The language being Russian is a bit weird, but that could be a "fall back" if the original language has no specific translation. The format of the dates may be a bigger issue, though.

It's because Echo uses the momentjs localizations for dates and times which are different from the MW ones for no good reason. This is causing other issues as well. It looks like Moment may not have localizations for ce, so it falls back to ru even though MW does have these localizations for ru.

Nemo_bis renamed this task from Notification time format to Echo's momentjs usage produces incorrect time format in ce.Jul 24 2016, 9:26 PM
Nemo_bis triaged this task as Medium priority.
Jdforrester-WMF renamed this task from Echo's momentjs usage produces incorrect time format in ce to Moment.js doesn't have a Chechen (ce) time format support and falls back to Russian, so Notifications are in an incorrect time format.Feb 8 2017, 8:57 PM

Umar: Indeed, as the upper left corner here says "Open" and not "Resolved". Hence no need to add such comments.
Someone (you?) probably needs to report this to https://github.com/moment/moment with clear steps to reproduce, I think.

@matmarex. I don't have rights to add a file. Please help!

Unfortunately, I don't speak English and I'm not a programmer, so I did what I could.

No one on that site wants to help.

Can someone upload the file for me?

Screenshot_38.jpg (371×933 px, 47 KB)

No one on that site wants to help.

That is not true. Contacting random people is simply not a great idea. And asking for an "administrator" (what does that mean?) makes no sense.
Your screenshot clearly says what you should do: Fix the title of your change, and do not edit automatically generated files in your change.