Skip to content

Feature/configurable timezone #294

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

Merged
merged 6 commits into from
Feb 8, 2023

Conversation

JuliusMikkela
Copy link
Contributor

Added the option to change TimeZone used by DateTimeJsonConverter to allow deserialization into UTC-DateTimes instead of Local ones, which can be a hassle to reverse-engineer in environments where Local is unreliable or undesirable.

Should resolve or at least mitigate #271 and shouldn't cause any breaking changes since the UTC setting is opt-in.

Also centralized a lof of duplicated JsonSerializerSettings, and technically allows users to tinker with the settings themselves (at their own risk, naturally).

Julius Mikkelä added 3 commits January 31, 2023 10:59
- New static RedisSerializationSettings for centralized serialization config
- UseUtcTime & UseLocalTime settings
- Moved a lot of duplicated JsonSerializerSettings into RedisSerializationSettings
Copy link
Member

@slorello89 slorello89 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea @JuliusMikkela LGTM 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants