Skip to content

Commit

Permalink
Don't use DateFormatConverter for DateOnly (#1594)
Browse files Browse the repository at this point in the history
The DateFormatConverter has been causing some problems for use when using DateOnly.  I don't think it's needed for DateOnly, and removing it will solve these problems
  • Loading branch information
Sinhk authored Sep 26, 2023
1 parent 138004f commit c6f9f28
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public ClassTemplateModel(string typeName, CSharpGeneratorSettings settings,
_schema?.InheritsSchema(_resolver.ExceptionSchema) == true;

/// <summary>Gets a value indicating whether to use the DateFormatConverter.</summary>
public bool UseDateFormatConverter => _settings.DateType.StartsWith("System.Date");
public bool UseDateFormatConverter => _settings.DateType.StartsWith("System.DateTime");

/// <summary>Gets or sets the access modifier of generated classes and interfaces.</summary>
public string TypeAccessModifier => _settings.TypeAccessModifier;
Expand Down

0 comments on commit c6f9f28

Please sign in to comment.