tugberkugurlu / AspNetCore.Identity.MongoDB

MongoDB Data Store Adaptor for ASP.NET Core Identity
MIT License
230 stars 69 forks source link

Occurance is not stored as is #36

Closed tugberkugurlu closed 7 years ago

tugberkugurlu commented 7 years ago

Precision of the date time is lost when we store it into MongoDB. We may need to store it as UNIX epoch.

    AspNetCore.Identity.MongoDB.Tests.UserStoreTests.CreateAsync_ShouldCreateUser [FAIL]
      Assert.Equal() Failure
      Expected: Occurrence { Instant = 2017-01-29T17:12:20.8996910Z }
      Actual:   Occurrence { Instant = 2017-01-29T17:12:20.8990000Z }