I have a parameterized contract that includes a POSIXTime as a field called startTime served via PAB.
What is the appropriate stringified HTTP payload to indicate a date with time such as the 25th of September 2021 at noon (no timezone?).
Cardano Stack Exchange is a question and answer site for users and developers of the Cardano cryptocurrency ecosystem. It only takes a minute to sign up.Sign up to join this community
I had troubles making
POSIXTime a part of JSON payload, you can just unwrap the
Integer inside and use it instead.
Anyway, JSON serialization is implemented here, you can check that instance for details.
If you need to convert
POSIXTime to standard time format, something like this function would be useful.