Skip to content

Commit

Permalink
Rename toJava8LocalDateTime => toLocalDateTime and formatJava8DateTim…
Browse files Browse the repository at this point in the history
…e => formatLocalDateTime
  • Loading branch information
UweKubosch committed Mar 25, 2024
1 parent 740645c commit 5a56a75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/ruby/slim_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit 5a56a75

Please sign in to comment.