Added proper handling of TimeStampWithOffset

This commit is contained in:
Daniele Teti 2024-02-23 00:30:04 +01:00
parent 02c0ae0f37
commit 833195243e

View File

@ -1192,15 +1192,11 @@ begin
begin
aRTTIField.SetValue(AObject, Frac(AField.AsDateTime));
end;
ftTimeStamp:
ftTimeStamp, ftTimeStampOffset:
begin
// Conversion between timestampoffset and TDateTime is automatically done by "AsDateTime"
aRTTIField.SetValue(AObject, AField.AsDateTime);
end;
ftTimeStampOffset:
begin
aRTTIField.SetValue(AObject,
TValue.From<TSQLTimeStampOffset>(AField.AsSQLTimeStampOffset));
end;
ftBoolean:
begin
aRTTIField.SetValue(AObject, AField.AsBoolean);