I am looking to convert a Datetime field into ZonedDatetime but with Zero timestamp. I have a function like below -
fun dateInSecToDateTimePST(d : String) = if (d != null)
(d as Number as DateTime {unit: "seconds"} >> "CST")
else null
The output of this is
2020-11-20T21:30:00-06:00
But The output what I am expecting is like below-
2020-11-20T00:00:00-06:00
Timestamp will always remain zero but with offset. Any suggestion ? I am using %dw 2.0 and Mule4