Skip to content

Commit

Permalink
Merge pull request #38 from pagopa/PRDP-168-format-date-template
Browse files Browse the repository at this point in the history
[PRDP-168] Fixed date format localization
  • Loading branch information
pasqualespica authored Oct 16, 2023
2 parents ddb937b + aaa7b6f commit 24b0e69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

public class BizEventToPdfMapper {

private static final String REF_TYPE_NOTICE = "CODICE AVVISO";
private static final String REF_TYPE_NOTICE = "codiceAvviso";
private static final String REF_TYPE_IUV = "IUV";

/**
Expand Down Expand Up @@ -208,7 +208,7 @@ private static String currencyFormat(String value){
}

private static String dateFormat(String date, boolean withTimeZone){
DateTimeFormatter simpleDateFormat = DateTimeFormatter.ofPattern("dd MMMM yyyy, HH:mm:ss");
DateTimeFormatter simpleDateFormat = DateTimeFormatter.ofPattern("dd MMMM yyyy, HH:mm:ss").withLocale(Locale.ITALY);

if(withTimeZone){
return ZonedDateTime.parse(date).format(simpleDateFormat);
Expand Down

0 comments on commit 24b0e69

Please sign in to comment.