Skip to content

Commit

Permalink
Use DateTimeOffset (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
joegoldman2 authored Oct 23, 2023
1 parent eb312de commit ec12c81
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BlazorWasmDemo/Server/Controllers/UserController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public async Task<string> CreateCredentialAsync([FromRoute] string username, [Fr
PublicKey = result.Result.PublicKey,
UserHandle = result.Result.User.Id,
SignCount = result.Result.SignCount,
RegDate = DateTime.Now,
RegDate = DateTimeOffset.UtcNow,
AaGuid = result.Result.AaGuid,
DevicePublicKeys = new List<byte[]> { result.Result.DevicePublicKey },
Transports = result.Result.Transports,
Expand Down
2 changes: 1 addition & 1 deletion Demo/Controller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public async Task<JsonResult> MakeCredential([FromBody] AuthenticatorAttestation
UserHandle = success.Result.User.Id,
SignCount = success.Result.SignCount,
AttestationFormat = success.Result.AttestationFormat,
RegDate = DateTime.Now,
RegDate = DateTimeOffset.UtcNow,
AaGuid = success.Result.AaGuid,
Transports = success.Result.Transports,
IsBackupEligible = success.Result.IsBackupEligible,
Expand Down
2 changes: 1 addition & 1 deletion Src/Fido2.Development/StoredCredential.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public class StoredCredential

public string AttestationFormat { get; set; }

public DateTime RegDate { get; set; }
public DateTimeOffset RegDate { get; set; }

public Guid AaGuid { get; set; }
}

0 comments on commit ec12c81

Please sign in to comment.