Skip to content

Commit

Permalink
Parse date strings according to time zone
Browse files Browse the repository at this point in the history
  • Loading branch information
flexable777 committed Jan 17, 2021
1 parent 820553e commit 273d486
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package no.nav.klage.oppgave.api.internal

import com.fasterxml.jackson.annotation.JsonFormat
import java.time.LocalDate
import java.time.LocalDateTime

Expand All @@ -26,8 +27,11 @@ data class OppgaveKopiAPIModel(
val aktivDato: LocalDate,
val opprettetAv: String,
val endretAv: String? = null,
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX")
val opprettetTidspunkt: LocalDateTime,
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX")
val endretTidspunkt: LocalDateTime? = null,
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX")
val ferdigstiltTidspunkt: LocalDateTime? = null,
val behandlesAvApplikasjon: String? = null,
val journalpostkilde: String? = null,
Expand Down

0 comments on commit 273d486

Please sign in to comment.