Closed ZirgVoice closed 3 weeks ago
I believe this is no longer relevant, as we decided not to use Double
. The desire to use Double
as a date arose due to the thread safety issues with DateFormatter
. We've now resolved this problem and are using Date
instead.
I use
secondsSince1970
to decode and encode date inCoders
. InFluent
thecreatedAt
field is of typeDate
, so that the frontend doesn't have problems I convert it toDouble
in the schema, and it seems that the standarddecoder/encoder
deferredToDate
starts to be used, because in the response to the request comes721570737.092619
instead of1699877937.092619
. I also tried converting toString
, same result.Config coders.decoder.dateDecodingStrategy:
Field in schema: