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 for lock user account when db provider is PostreSql #2647

Merged

Conversation

afedorov1971
Copy link
Contributor

Description

Both DateTime.MaxValue and DateTime.MinValue has Unspecified kind. There's an error when trying to save such a value to PostgreSql database.
This fix converts the dates into the universal time and "Lock account" works ok.
It was verified with PostgreSQL 15.2 and MySql 5.7 versions (Security/Users/account Lock account command)

References

QA-test:

Jira-link:

Artifact URL:

…ere's an error when saving such a value to PostgreSQL db. the fix is to convert it to utc
@vc-ci
Copy link
Contributor

vc-ci commented Apr 25, 2023

Reveiw task created: https://virtocommerce.atlassian.net/browse/PT-11958

@OlegoO OlegoO merged commit 9d83950 into VirtoCommerce:dev Apr 25, 2023
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.

None yet

3 participants