Skip to content

Commit

Permalink
Update ObjectsMappers.pas
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianosantostreina authored Oct 26, 2024
1 parent dc1e022 commit eedd012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ObjectsMappers.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ class function Mapper.ObjectToJSONObject(AObject: TObject; AIgnoredProperties: a
tm := Round(TimeStampToMsecs(ts));
JSONObject.AddPair(f, TJSONNumber.Create(tm));
{$ELSE}
JSONObject.AddPair(f, TJSONNumber.Create(TimeStampToMsecs(ts)));
JSONObject.AddPair(f, TJSONNumber.Create(Double(TimeStampToMsecs(ts))));
{$ENDIF}
end;
end;
Expand Down

0 comments on commit eedd012

Please sign in to comment.