This commit is contained in:
2018-12-07 21:10:19 +00:00
parent daa744d7c9
commit 56c7b8a1be
5 changed files with 153 additions and 9 deletions

View File

@@ -53,7 +53,10 @@ namespace AyaNova.Api.Controllers
<pre>{AySchema.currentSchema.ToString()}</pre>
<h4>Server time</h4>
<pre>{DateUtil.ServerDateTimeString(System.DateTime.UtcNow)}</pre>
<pre>{TimeZoneInfo.Local.Id}</pre>
<pre>{TimeZoneInfo.Local.Id}</pre>
<pre>Test datetime.now to string {System.DateTime.Now.ToString()}</pre>
<pre>Test datetime.UtcNow to string {System.DateTime.UtcNow.ToString()}</pre>
<pre>Test datetime.Now then converted to universaltime then to string {System.DateTime.Now.ToUniversalTime().ToString()}</pre>
<h4>Server logs</h4>
<pre>{ServerBootConfig.AYANOVA_LOG_PATH}</pre>
</div>

View File

@@ -380,7 +380,7 @@ namespace AyaNova
// ******************** TESTING WIPE DB *****************************
//
//Set this to true to wipe the db and reinstall a trial license and re-seed the data
var TESTING_REFRESH_DB = true;//#############################################################################################
var TESTING_REFRESH_DB = false;//#############################################################################################
#if (DEBUG)
//TESTING

View File

@@ -841,7 +841,7 @@ namespace AyaNova.Biz
}
private static DateTime MaxMilliseconds(DateTime d)
{
if (d.Millisecond == 0) return d;
if (d.Millisecond == 999) return d;
return new DateTime(d.Year, d.Month, d.Day, d.Hour, d.Minute, d.Second, 999, DateTimeKind.Utc);
}