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