Skip to content

Commit

Permalink
Synced OpenAPI.Neon.Serializers.pas with the latest Neon changes
Browse files Browse the repository at this point in the history
  • Loading branch information
paolo-rossi committed Nov 18, 2023
1 parent 436c1e6 commit 091e418
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/OpenAPI.Neon.Serializers.pas
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ function TNullableTDateTimeSerializer.Deserialize(AValue: TJSONValue; const ADat
var
LNullValue: NullDateTime;
begin
LNullValue := TJSONUtils.JSONToDate(AValue.Value, AContext.GetConfiguration.GetUseUTCDate);
LNullValue := TJSONUtils.JSONToDateTime(AValue.Value, AContext.GetConfiguration.GetUseUTCDate);
Result := TValue.From<NullDateTime>(LNullValue);
end;

Expand All @@ -356,7 +356,7 @@ function TNullableTDateTimeSerializer.Serialize(const AValue: TValue;
Result := nil;
LValue := AValue.AsType<NullDateTime>;
if LValue.HasValue then
Result := TJSONString.Create(TJSONUtils.DateToJSON(LValue.Value, AContext.GetConfiguration.GetUseUTCDate));
Result := TJSONString.Create(TJSONUtils.DateTimeToJSON(LValue.Value, AContext.GetConfiguration.GetUseUTCDate));
end;

{ TOpenAPISerializer }
Expand Down

0 comments on commit 091e418

Please sign in to comment.