Adding timestamp where applicable

This commit is contained in:
Rick Falkvinge
2021-07-08 14:55:31 +02:00
parent 996fe86b90
commit 0c24b69699
@@ -962,6 +962,13 @@ namespace Swarmops.Frontend.Pages.v5.Financial
FinancialAccount budget = this.ComboBudgets.SelectedAccount;
// If the expense happened now, get the timestamp of today as well
if (expenseDate.Date == DateTime.Today)
{
expenseDate = DateTime.UtcNow;
}
// sanity check
if (budget.Organization.Identity != CurrentOrganization.Identity)