This commit is contained in:
@@ -50,6 +50,22 @@ namespace Sockeye.Util
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An internally consistent empty or not relevant date marker:
|
||||
/// January 1st 5555 plus one day in UTC because RAVEN checks if less than EmptyDateValue above but didn't code it with timezone or UTC in mind originally
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public static DateTime EmptyDateValueForLicenseGeneration
|
||||
{
|
||||
get
|
||||
{
|
||||
return new DateTime(5555, 1, 2, 0, 0, 0, DateTimeKind.Utc);
|
||||
//Was going to use MaxValue but apparently that varies depending on culture
|
||||
// and PostgreSQL has issues with year 1 as it interprets as year 2001
|
||||
// so to be on safe side just defining one for all usage
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// returns a UTC short date, short time formatted date for local display to end user in logs, errors etc at the server level
|
||||
|
||||
Reference in New Issue
Block a user