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