You are not logged in.
Pages: 1
Hello,
service method parameter TDateTime is currently transmitted as JSON number.
Is it possible to transmit TDateTime as ISO 8601 text?
I want to use Synopse as a custom REST server for JavaScript client and it would be more convenient to transmit all date/time values as ISO 8601 text.
Thanks!
Last edited by mwore (2017-09-15 14:16:04)
Offline
Are you talking about interface-based service?
In this case, you should do the text conversion by hand, and define the parameter as RawUTF8.
You may define your own type:
type TMyIso8601 = type RawUTF8;
Offline
So there is no way to override default TDateTime formatting without defining my own type? I was hoping to reuse my existing classes without any type modifications.
Thanks!
Offline
Pages: 1