german decimal separator forced

This commit is contained in:
Jottyfan 2023-10-21 21:51:26 +02:00
parent 3dd39751af
commit d4ae63f975
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,7 @@ plugins {
}
group = 'de.jottyfan.camporganizer'
version = '0.6.2'
version = '0.6.3'
description = """CampOrganizer2"""

View File

@ -3,7 +3,9 @@ package de.jottyfan.camporganizer.module.confirmation.board;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.Formatter;
import java.util.List;
import java.util.Locale;
import org.springframework.stereotype.Service;
@ -24,7 +26,7 @@ public class List2CSVService {
}
private StringBuilder append(StringBuilder buf, Double d) {
return buf.append(d == null ? SEP : String.format("%.2f%s", d, SEP));
return buf.append(d == null ? SEP : new Formatter(Locale.GERMAN).format("%.2f%s", d, SEP));
}
private StringBuilder append(StringBuilder buf, Boolean b) {