diff --git a/src/isnd/Controllers/Packages/PackagesController.Put.cs b/src/isnd/Controllers/Packages/PackagesController.Put.cs index 3084fa8..4c5b1b3 100644 --- a/src/isnd/Controllers/Packages/PackagesController.Put.cs +++ b/src/isnd/Controllers/Packages/PackagesController.Put.cs @@ -46,7 +46,7 @@ namespace isnd.Controllers Commit commit = new Commit { Action = PackageAction.PublishPackage, - TimeStamp = DateTime.Now + TimeStamp = DateTime.UtcNow }; dbContext.Commits.Add(commit); diff --git a/src/isnd/Data/ApiKeys/ApiKey.cs b/src/isnd/Data/ApiKeys/ApiKey.cs index 517e93a..f891693 100644 --- a/src/isnd/Data/ApiKeys/ApiKey.cs +++ b/src/isnd/Data/ApiKeys/ApiKey.cs @@ -20,6 +20,6 @@ namespace isnd.Data.ApiKeys public DateTime CreationDate { get; set; } - public bool IsValid => CreationDate.AddDays(ValidityPeriodInDays) > DateTime.Now; + public bool IsValid => CreationDate.AddDays(ValidityPeriodInDays) > DateTime.UtcNow; } } \ No newline at end of file diff --git a/src/isnd/Services/PackageManager.cs b/src/isnd/Services/PackageManager.cs index ac66bda..be2f280 100644 --- a/src/isnd/Services/PackageManager.cs +++ b/src/isnd/Services/PackageManager.cs @@ -194,7 +194,7 @@ namespace isnd.Services var commit = new Commit { Action = PackageAction.DeletePackage, - TimeStamp = DateTime.Now + TimeStamp = DateTime.UtcNow }; dbContext.Commits.Add(commit); var pkg = await dbContext.PackageVersions.SingleOrDefaultAsync(