Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AudunSorheim committed Dec 16, 2024
1 parent 644f3c1 commit 7a92348
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ fun LocalDateTime.formatAsISO8601(): String {
}

fun OffsetDateTime.formatAsISO8601(): String {
val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ssXXX")
return this.format(formatter)
val formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss")
return this.toLocalDateTime().format(formatter)
}

0 comments on commit 7a92348

Please sign in to comment.