Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Replace DateTime and DateTimeKind with DateTimeOffset #1525


User avatar
0
khteh created

Hi; I suggest replacing DateTime and DateTimeKind with DateTimeOffset. This is found in Abp.Timing.Clock class. DateTimeOffset has all the information needed.


1 Answer(s)
  • User Avatar
    0
    hikalkan created
    Support Team

    DateTime is a commonly used type. We wanted to provide some infrastructure if you are using it. If you prefer to use DateTimeOffset, yes, you don't need to use Clock class since it has already timezone information inside.