Change DateTime from Now to Today
This commit is contained in:
parent
e67d94f199
commit
f620147515
@ -161,7 +161,7 @@ public class RhSolutionsFunction
|
||||
.GetResult()
|
||||
.FirstOrDefault();
|
||||
|
||||
DateTime date = dateField == 0 ? DateTime.Now : DateTime.FromOADate(dateField);
|
||||
DateTime date = dateField == 0 ? DateTime.Today : DateTime.FromOADate(dateField);
|
||||
var exchangeRate = currencyClient.GetCurrencyCourse(date)
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
@ -193,7 +193,7 @@ public class RhSolutionsFunction
|
||||
|
||||
if (ExcelAsyncUtil.Run("Database request", dateField, delegate
|
||||
{
|
||||
DateTime date = dateField == 0 ? DateTime.Now : DateTime.FromOADate(dateField);
|
||||
DateTime date = dateField == 0 ? DateTime.Today : DateTime.FromOADate(dateField);
|
||||
var exchangeRate = currencyClient.GetCurrencyCourse(date)
|
||||
.GetAwaiter()
|
||||
.GetResult();
|
||||
|
Loading…
Reference in New Issue
Block a user