How to change the date display to international format

Calendar

On an Ubuntu system:

  • cd /usr/share/i18n/locales
  • sudo cp en_US en_INTL
  • sudo vi en_INTL
  • change the d_fmt line to: “<U0025><U0059><U002D><U0025><U006d><U002D><U0025><U0064>”
  • sudo vi /var/lib/locales/supported.d/local
  • add the following line: en_INTL.UTF-8 UTF-8
  • sudo dpkg-reconfigure locales
  • sudo vi /etc/environment
  • add the following line: LC_TIME=”en_INTL.UTF-8″

Reboot/relogin. Now you should have dates displayed like this: 2007-01-18.

Who says Linux is not ready for the desktop? Er.. right.

2 Replies to “How to change the date display to international format”

  1. Or make use of the actual settings you have via locale? =)

    LANG=”en_US.UTF-8″
    LC_COLLATE=”sv_SE.UTF-8″
    LC_CTYPE=”sv_SE.UTF-8″
    LC_MONETARY=”sv_SE.UTF-8″
    LC_NUMERIC=”sv_SE.UTF-8″
    LC_TIME=”sv_SE.UTF-8″
    LC_PAPER=”sv_SE.UTF-8″

    Notice the time line =)

Comments are closed.