From 2f26d8c8c13faedaf683d3521e1ed307cb3546c4 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 26 Oct 2022 01:39:48 +0000 Subject: [PATCH] --- docs/8.0/ayanova/docs/changelog.md | 6 +++++- server/AyaNova/util/License.cs | 6 ++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/8.0/ayanova/docs/changelog.md b/docs/8.0/ayanova/docs/changelog.md index ad062359..852b1ebe 100644 --- a/docs/8.0/ayanova/docs/changelog.md +++ b/docs/8.0/ayanova/docs/changelog.md @@ -10,8 +10,12 @@ The most recent changes are written in the AyaNova manual [hosted on our website #### Fixed -- Server: expiration date of license and maintenance incorrectly stated "(utc)" time in log but is actually server local time +- Server: expiration date of license and maintenance incorrectly stated "(utc)" time in log but is actually server local time +- UI: Evaluation license request page now properly shows that the company name and other details are _required_ and disables request button until filled in +#### Changed + +- UI: Administration -> License page now has time in addition to date for license and maintenance expiration values ### AyaNova 8.0.17 (2022-10-12) diff --git a/server/AyaNova/util/License.cs b/server/AyaNova/util/License.cs index 4f842755..bb221a48 100644 --- a/server/AyaNova/util/License.cs +++ b/server/AyaNova/util/License.cs @@ -243,7 +243,8 @@ namespace AyaNova.Core { get { - return LicenseExpiration < DateTime.Now; + //Note: key is already UTC and should parse into datetime kind UTC but this is insurance in case rockfish changes as has no effect on a UTC kind of datetime + return LicenseExpiration.ToUniversalTime() < DateTime.UtcNow; } } @@ -251,7 +252,8 @@ namespace AyaNova.Core { get { - return MaintenanceExpiration < DateTime.Now; + //Note: key is already UTC and should parse into datetime kind UTC but this is insurance in case rockfish changes as has no effect on a UTC kind of datetime + return MaintenanceExpiration.ToUniversalTime() < DateTime.UtcNow; } }