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

INTL0202 - Also flag when the DateTime only Constructor of DateTimeOffset is used #302

Open
BenjaminMichaelis opened this issue Apr 3, 2024 · 0 comments

Comments

@BenjaminMichaelis
Copy link
Member

Right now it flags on the implicit conversion of DT to DTO but you could mistakingly get around this by doing DateTimeOffset dto = new DateTimeOffset(new DateTime(2,2,2022)); and not including a timespan in your constructor when this is doing the same thing.

@BenjaminMichaelis BenjaminMichaelis changed the title INTL0202 - Also flag when the DateTime Constructor of DateTimeOffset is used INTL0202 - Also flag when the DateTime only Constructor of DateTimeOffset is used Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant