german decimal separator forced
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user