Skip to content

Commit 7e52e38

Browse files
committed
Change default for DateAsString
1 parent a1691b9 commit 7e52e38

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/TypeScriptBuilder/TypeScriptGeneratorOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class TypeScriptGeneratorOptions
2424
/// <summary>
2525
/// Use this to have dates typed as string. Useful since JSON-serialization of C# DateTime will be a string.
2626
/// </summary>
27-
public bool DatesAsString = false;
27+
public bool DatesAsString = true;
2828

2929
}
3030
}

tests/TypeScriptBuilder.Tests/SimpleDtos/SimpleDtoTests.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ public void Render_Simple_Dto()
1414
{
1515
EmitDocumentation = false,
1616
EmitComments = false,
17-
DatesAsString = true
1817
});
1918

2019

0 commit comments

Comments
 (0)