diff --git a/build.gradle b/build.gradle index 1e7b41e..13d7390 100644 --- a/build.gradle +++ b/build.gradle @@ -7,7 +7,7 @@ plugins { } group 'no.datek' -version '0.16.2' +version '0.16.3' final String JRUBY_VERSION = '9.4.5.0'; repositories { diff --git a/src/main/resources/ruby/slim_helper.rb b/src/main/resources/ruby/slim_helper.rb index b83043f..1db8166 100644 --- a/src/main/resources/ruby/slim_helper.rb +++ b/src/main/resources/ruby/slim_helper.rb @@ -91,12 +91,12 @@ def formatDateTime(date_time, format = 'yyyy-MM-dd HH:mm:ss', timeZoneId: TimeZo local_date_time = if !(LocalDateTime === date_time) - DateUtils.toJava8LocalDateTime(date_time) + DateUtils.toLocalDateTime(date_time) else date_time end - DateUtils.formatJava8DateTime(local_date_time, format, timeZoneId) + DateUtils.formatLocalDateTime(local_date_time, format, timeZoneId) end def formatDate(date, format = '%d.%m.%Y')