mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 07:45:54 +01:00
Fix serialization of TimestampOffset fields
This commit is contained in:
parent
04acc09039
commit
05129d5566
@ -864,6 +864,9 @@ begin
|
||||
ftTimeStamp:
|
||||
AJsonArray.Add(DateTimeToISOTimeStamp(SQLTimeStampToDateTime(ADataSet.Fields[lField.I].AsSQLTimeStamp)));
|
||||
|
||||
ftTimeStampOffset:
|
||||
AJsonArray.Add(DateTimeToISOTimeStamp(SQLTimeStampOffsetToDateTime(ADataSet.Fields[lField.I].AsSQLTimeStampOffset)));
|
||||
|
||||
ftCurrency:
|
||||
AJsonArray.Add(ADataSet.Fields[lField.I].AsCurrency);
|
||||
|
||||
@ -2176,6 +2179,9 @@ begin
|
||||
TFieldType.ftDateTime, TFieldType.ftTimeStamp:
|
||||
Field.AsDateTime := ISOTimeStampToDateTime(AJSONObject.S[lName]);
|
||||
|
||||
TFieldType.ftTimeStampOffset:
|
||||
Field.AsSQLTimeStampOffset := DateTimeToSQLTimeStampOffset(ISOTimeStampToDateTime(AJSONObject.S[lName]));
|
||||
|
||||
TFieldType.ftTime:
|
||||
Field.AsDateTime := ISOTimeToTime(AJSONObject.S[lName]);
|
||||
|
||||
@ -2299,7 +2305,7 @@ begin
|
||||
Field.AsDateTime := ISOTimeStampToDateTime(AJSONObject.S[lName]);
|
||||
|
||||
TFieldType.ftTimeStampOffset:
|
||||
Field.AsSQLTimeStampOffset := StrToSQLTimeStampOffset(AJSONObject.S[lName]);
|
||||
Field.AsSQLTimeStampOffset := DateTimeToSQLTimeStampOffset(ISOTimeStampToDateTime(AJSONObject.S[lName]));
|
||||
|
||||
TFieldType.ftTime:
|
||||
Field.AsDateTime := ISOTimeToTime(AJSONObject.S[lName]);
|
||||
|
Loading…
Reference in New Issue
Block a user