File tree 1 file changed +1
-1
lines changed
apps/bekreftelse-tjeneste/src/test/kotlin/no/nav/paw/bekreftelsetjeneste/testutils
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ fun setOppTest(
188
188
val Int .dager: Duration get() = Duration .ofDays(this .toLong())
189
189
val Int .timer: Duration get() = Duration .ofHours(this .toLong())
190
190
private val format = DateTimeFormatter .ofPattern(" dd.MM.yyyy HH:mm" )
191
- val String .timestamp: Instant get() = LocalDateTime .parse(this , format).atZone(ZoneId .systemDefault( )).toInstant()
191
+ val String .timestamp: Instant get() = LocalDateTime .parse(this , format).atZone(ZoneId .of( " Europe/Oslo " )).toInstant()
192
192
private val prettyPrintFormat: DateTimeFormatter = DateTimeFormatter .ofPattern(" cccc dd.MM.yyyy HH:mm ('uke' w)" )
193
193
val Instant .prettyPrint: String get() = LocalDateTime .ofInstant(this , ZoneId .systemDefault()).format(prettyPrintFormat)
194
194
.replace(" Monday" , " Mandag" )
You can’t perform that action at this time.
0 commit comments