From ade89998918bde44fbe6adb33bcc6fc677587adc Mon Sep 17 00:00:00 2001 From: Yves Fischer Date: Thu, 10 Mar 2016 21:37:04 +0100 Subject: fix model dateparsing --- src/main/groovy/org/xapek/yvesf/classifieds/Model.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/groovy/org/xapek') diff --git a/src/main/groovy/org/xapek/yvesf/classifieds/Model.groovy b/src/main/groovy/org/xapek/yvesf/classifieds/Model.groovy index 1887f30..6cbdc6e 100644 --- a/src/main/groovy/org/xapek/yvesf/classifieds/Model.groovy +++ b/src/main/groovy/org/xapek/yvesf/classifieds/Model.groovy @@ -74,7 +74,7 @@ class Model { } } - final static SimpleDateFormat dateParser = new SimpleDateFormat('MMM dd, yy', Locale.GERMANY) + final static SimpleDateFormat dateParser = new SimpleDateFormat('MMM dd, yy', Locale.ENGLISH) final static SimpleDateFormat dateFormatter = new SimpleDateFormat('EEE, dd MMM yyyy HH:mm:ss Z', Locale.ROOT) String getFormattedDate() { return dateFormatter.format(dateParser.parse(date)) -- cgit v1.2.1