Skip to content

Commit

Permalink
Remove time part from posting date bug (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashutosh619-sudo committed Jul 16, 2024
1 parent 1f22139 commit 435480d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/accounting_exports/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def create_accounting_export(expense_objects: List[Expense], fund_source: str, w
if date_field != 'current_date' and accounting_export[date_field]:
accounting_export[date_field] = accounting_export[date_field].strftime('%Y-%m-%d')
else:
accounting_export[date_field] = datetime.now().strftime('%Y-%m-%dT%H:%M:%S')
accounting_export[date_field] = datetime.now().strftime('%Y-%m-%d')

# Calculate and assign 'last_spent_at' based on the chosen date field
if date_field == 'last_spent_at':
Expand Down

0 comments on commit 435480d

Please sign in to comment.