Changing display locale for Confluence Date Picker Macro

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Purpose

The Date Picker Macro for Confluence will display the Month according to the system locale by default. 

For example, if a Confluence hosted in Ubuntu that is using zh_TW.UTF-8 as its default locale, a Date Picker Macro will be displayed as below in the Confluence:

Another example is the following would be seen in the date picker when the OS locale is been set to Korean:

23 8월 2018


Solution

  • To change the display format for Confluence Date Picker Macro, aside from changing the System Locale, the following JVM Parameters can be added:

    -Duser.language=en -Duser.country=US

    (info) The Internationalization: Understanding Locale in the Java Platform documentation from Oracle contains further information on the different codes to be set for language and country codes.

  • The details steps for adding the parameters is explained in this article - Configuring System Properties.
  • Date Picker Macro will display as below with the JVM Parameters in place:

Commonly used Locales

Commonly used language codes:

LanguageCode
Arabicar
Germande
Englishen
Spanishes
Japaneseja
Hebrewhe

Examples of commonly used Country codes:

CountryCode
United StatesUS
AustraliaAU
CanadaCA
FranceFR
JapanJP
GermanyDE

Last modified on Nov 2, 2018

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.