I have included build info and git info file in my jar file. So, calling springboot actuator's /info returns the build and git info in json. However, the build time and commit time are all represented in epoch timestamp.
"build": { "version": "1.1.5", "artifact": "service-artifact", "name": "Service name", "group": "some group", "time": 1594218235.671000000 }
I tried setting the following but same result.
spring.jackson.time-zone=GMT
spring.jackson.serialization.write-dates-as-timestamps=false
spring.jackson.date-format=yyyy-MM-dd
Time when converted from epoch to GMT shows correct time. We use the application to deploy to PCF and when looking from PCF AppManager, settings tab, the time incorrectly converts to Time: 01/19/70 09:59AM UTC
If the time is sent in ISO 8601 format in /info call, all seem to work. Looking for help and suggestion as to how to configure this correctly to send ISO 8601 formatted date and time from actuator /info call.
Thanks.