mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 07:45:54 +01:00
Added proper handling of TimeStampWithOffset
This commit is contained in:
parent
02c0ae0f37
commit
833195243e
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user