# result: [
#   {
#     "eventTime": "2022-02-01T02:00:00Z",
#     "timestamp": "2022-02-01T02:00:00Z"
#   },
#   {
#     "eventTime": "2022-02-01T02:00:00Z",
#     "timestamp": "2022-02-01T02:00:00Z"
#   }
# ]

events = [{ "eventTime": "2022-02-01T02:00:00Z" }, { "eventTime": "2022-02-01T02:00:00Z" }]
map_values(events) -> |value| {
  value.timestamp = parse_timestamp(value.eventTime, "%Y-%m-%dT%H:%M:%SZ") ?? now()
  value
}
