comparison artifacts/src/main/java/org/dive4elements/river/artifacts/common/AbstractResultType.java @ 9168:d2472018740c

Fixed dateformat with 4-digit year, added query method for collision years of a river
author mschaefer
date Thu, 21 Jun 2018 08:13:37 +0200
parents f9bb5d0a6ff3
children 1614cb14308f
comparison
equal deleted inserted replaced
9167:cb3a91dc4e3b 9168:d2472018740c
86 return this.formatters.get(locale); 86 return this.formatters.get(locale);
87 } 87 }
88 88
89 protected final String exportDateValue(final CallContext context, final Date value) { 89 protected final String exportDateValue(final CallContext context, final Date value) {
90 final Locale locale = Resources.getLocale(context.getMeta()); 90 final Locale locale = Resources.getLocale(context.getMeta());
91 final DateFormat df = DateFormat.getDateInstance(DateFormat.SHORT, locale); 91 final DateFormat df = DateFormat.getDateInstance(DateFormat.MEDIUM, locale);
92 return df.format(value); 92 return df.format(value);
93 } 93 }
94 94
95 protected abstract NumberFormat createFormatter(CallContext context); 95 protected abstract NumberFormat createFormatter(CallContext context);
96 96

http://dive4elements.wald.intevation.org