But, per MSDN, it is preferred to use DateTimeOffset when referring to actual times (i.e. the actual time a blog post was posted, or a comment was commented).
In fact, it goes so far as to say:
Note
These uses for DateTimeOffset values are much more common than those for DateTime values. As a result, DateTimeOffset should be considered the default date and time type for application development.
The change is probably straightforward: just search & replace all DateTime with DateTimeOffset.
The use of
DateTime
is prevalent in the codebase: https://github.com/VenusInterns/BlogTemplate/search?utf8=%E2%9C%93&q=datetime&type=But, per MSDN, it is preferred to use
DateTimeOffset
when referring to actual times (i.e. the actual time a blog post was posted, or a comment was commented).In fact, it goes so far as to say:
The change is probably straightforward: just search & replace all
DateTime
withDateTimeOffset
.