Saving DateTime on backend, retreiving in FF -> error

I am creating new docs in a collection via api call, and I send the epoch(ms) value for a field called createdTime(as int not as string... just in case). When I try to list records, in a widget, I get the error:

ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'Timestamp' is not a subtype of type 'DateTime?'

Seems, I've saved timestamps and not dateTimes. what is the expected format for a dateTime according to FlutterFlow?

1 reply