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

Great library! Should the DateTimes be changed to DateTimeOffset? #76

Open
BenjaminCharlton opened this issue Mar 2, 2021 · 0 comments

Comments

@BenjaminCharlton
Copy link

Wow! Thank you so much for developing this and making it publicly available. I only started researching event sourcing and CQRS this week, having looked at DDD more generally a few months back. Your library has been really educational in helping me understand the concepts and is starting to become useful now that I'm working through examples of my own.

One small point (maybe you think it's pedantic). Seeing as timestamps are so important to the auditability of the system, which could be deployed across servers (and accessed by clients) in different time-zones, shouldn't your DateTime objects be DateTimeOffset instead.

If I understand correctly, this is the standard recommended for most use cases by Microsoft:

The uses for DateTimeOffset values are much more common than those for DateTime values. As a result, consider DateTimeOffset as the default date and time type for application development.

https://docs.microsoft.com/en-us/dotnet/standard/datetime/choosing-between-datetime

Maybe I'm totally wrong, in which case, sorry. But if I'm right, it should be an easy fix, right?

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