Hi,
I need some help, I have a user macro and using the Velocity template code like the one below I am getting the last month and current month. When my colleagues try in Shanghai, it is not giving correct result, their local character is shown in the Postgreqsql error message like '一月-19' and I am not sure what I have to fix here;
the month names are set as columns to display after some joins and all
#set($getLastMonth = $action.dateFormatter.getCalendar())
$getLastMonth.setTime($content.getCurrentDate())
$getLastMonth.add(2, -1)
#set($lastMonth=$action.dateFormatter.formatGivenString('MMM-yy',$getLastMonth.getTime()))
#set($getCurrentMonth = $action.dateFormatter.getCalendar())
$getCurrentMonth.setTime($content.getCurrentDate())
#set($currentMonth=$action.dateFormatter.formatGivenString('MMM-yy',$getCurrentMonth.getTime()))
Can you please help me on this issue? Is this something I can fix in user macro or something needs to be done in Confluence application?
Thank you
with warm regards
ramki
That is a tough one. Google translate says the message shows as "month-19"
Do you colleagues have their user profiles to English or Chinese? If the later, have them try setting their profiles to English. Or create a dummy user you have access to and set the language to Chinese to see what is happening. This appears to be a localization issue.
Thank you Bill Bailey, I will try your first suggestion, asking one of them to try English profile setting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hard luck, the user responded that he is using English as the profile, still I am seeing Chinese character in last date and current date
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And their browser is set to English as the default language?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.