File tree 1 file changed +3
-2
lines changed
airbyte-server/src/main/kotlin/io/airbyte/server/apis/publicapi/mappers
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import java.time.Duration
16
16
import java.time.Instant
17
17
import java.time.OffsetDateTime
18
18
import java.time.ZoneId
19
+ import java.time.format.DateTimeFormatter
19
20
20
21
/* *
21
22
* Mappers that help convert models from the config api to models from the public api.
@@ -63,10 +64,10 @@ object JobResponseMapper {
63
64
}
64
65
},
65
66
// set to string for now since the jax-rs response entity turns offsetdatetime into epoch seconds
66
- startTime = OffsetDateTime .ofInstant(Instant .ofEpochSecond(jobRead.createdAt), UTC ).toString( ),
67
+ startTime = DateTimeFormatter . ISO_DATE_TIME .format( OffsetDateTime .ofInstant(Instant .ofEpochSecond(jobRead.createdAt), UTC )),
67
68
lastUpdatedAt =
68
69
if (TERMINAL_JOB_STATUS .contains(jobRead.status)) {
69
- OffsetDateTime .ofInstant(Instant .ofEpochSecond(jobRead.updatedAt), UTC ).toString( )
70
+ DateTimeFormatter . ISO_DATE_TIME .format( OffsetDateTime .ofInstant(Instant .ofEpochSecond(jobRead.updatedAt), UTC ))
70
71
} else {
71
72
null
72
73
},
You can’t perform that action at this time.
0 commit comments