Skip to content

Commit

Permalink
chore: use OffsetDateTime in Time.kt (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
worstell authored Feb 15, 2024
1 parent c9221b7 commit 183afa5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ import xyz.block.ftl.Context
import xyz.block.ftl.Verb
import java.time.OffsetDateTime

// Make time an OffsetDateTime once schema extraction is fixed
data class TimeResponse(val time: String)
data class TimeResponse(val time: OffsetDateTime)

@Verb
fun time(context: Context, req: Empty): TimeResponse {
return TimeResponse(time = OffsetDateTime.now().toString())
return TimeResponse(time = OffsetDateTime.now())
}

0 comments on commit 183afa5

Please sign in to comment.