Цей вебсайт матиме обмежену функціональність, доки ми проводимо його обслуговування для поліпшення роботи. Якщо прочитана стаття не розв'язала вашу проблему і ви хочете поставити питання, наша спільнота підтримки з радістю допоможе вам на @FirefoxSupport у Twitter та /r/firefox на Reddit.

Шукати в статтях підтримки

Остерігайтеся нападів зловмисників. Mozilla ніколи не просить вас зателефонувати, надіслати номер телефону у повідомленні або поділитися з кимось особистими даними. Будь ласка, повідомте про підозрілі дії за допомогою меню “Повідомити про зловживання”

Докладніше

Ця тема перенесена в архів. Якщо вам потрібна допомога, запитайте.

Logic for determining the date/time format

  • 2 відповіді
  • 1 має цю проблему
  • 3 перегляди
  • Остання відповідь від palswim

more options

In my quest to display my messages with the ISO date format (yyyy-mm-dd), I determined that I needed to set a locale that would have the date format I desired, whether an existing locale or creating a custom locale.

I had read that the en_DK locale might provide what I wanted, and a quick call to LC_TIME=en_DK date +'%x' verified that it output the ISO-standard format. However, starting Thunderbird (LC_TIME=en_DK.UTF-8 gtk-launch thunderbird), Thunderbird displayed dates for my messages in a different format. But, when I started Thunderbird with the sv_SE locale (LC_TIME=sv_SE.UTF-8 gtk-launch thunderbird), Thunderbird did display the dates in the ISO format. Where does Thunderbird retrieve its date format, and why does it differ from date +'%x'?

In my quest to display my messages with the ISO date format (<i>yyyy-mm-dd</i>), I determined that I needed to set a locale that would have the date format I desired, whether an existing locale or creating a custom locale. I had read that [https://unix.stackexchange.com/q/62316/13308 the <b>en_DK</b> locale might provide what I wanted], and a quick call to <code>LC_TIME=en_DK date +'%x'</code> verified that it output the ISO-standard format. However, starting Thunderbird (<code>LC_TIME=en_DK.UTF-8 gtk-launch thunderbird</code>), Thunderbird displayed dates for my messages in a different format. But, when I started Thunderbird with the <b>sv_SE</b> locale (<code>LC_TIME=sv_SE.UTF-8 gtk-launch thunderbird</code>), Thunderbird did display the dates in the ISO format. Where does Thunderbird retrieve its date format, and why does it differ from <code>date +'%x'</code>?

Змінено palswim

Усі відповіді (2)

more options

Try checking the setting in Edit > preferences > advanced > general.

more options

Matt said

Try checking the setting in Edit > preferences > advanced > general.

You mean the Date and Time Formatting setting, with the options to choose between Application locale and Regional settings locale?

That setting did switch locales upon restart, but using the en_DK locale, Thunderbird still formatted the date differently than LC_TIME=en_DK date +'%x'.