OData V4 should not support DateTime as follows:
4.2.2 Pruned: Edm.DateTime
This data type convenient for some services and painful for a lot of clients: pico-second precision that may be off by 14 hours due to a wrongly guessed time zone. Edm.DateTimeOffset lets services share their knowledge of the time zone with their clients.
But, it still generates $metadata as follows, when the model has a System.DateTime property:
<Property Name="Id" Nullable="false" Type="Edm.Int32"/>
<Property Name="Name" Type="Edm.String"/>
<Property Name="Phone" Type="Edm.String"/>
<Property Name="Birth" Nullable="false" Type="System.DateTime"/>
- We should generate a proper error message when DateTime is used in the model.