german decimal separator forced
This commit is contained in:
parent
3dd39751af
commit
d4ae63f975
@ -8,7 +8,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = 'de.jottyfan.camporganizer'
|
||||
version = '0.6.2'
|
||||
version = '0.6.3'
|
||||
|
||||
description = """CampOrganizer2"""
|
||||
|
||||
|
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user