Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue where custom datetime format strings result in binding failure #3505

Merged
merged 5 commits into from
Apr 4, 2024

Conversation

phenning
Copy link
Contributor

@phenning phenning commented Apr 3, 2024

Also fix issue with always using UtcNow, even with $localDatetime.

Add tests

Also fix issue with always using UtcNow, even with $localDatetime.

Add tests
@phenning
Copy link
Contributor Author

phenning commented Apr 3, 2024

@jonsequitur , @shayam, @bleaphar

Require $datetime and $localDatetime to have either a custom format, or the rfc/iso options
Just specifying $datetime or #localDatetime should result in a IncorrectDateTimeFormat binding failure

Fix error strings to include proper escaping for {{$localDatetime ...}} strings, this was being output with only single set of braces which is incorrect.
@jonsequitur jonsequitur merged commit af05eb5 into dotnet:main Apr 4, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants