Merge dev into main for customer release #33
@@ -10,7 +10,9 @@ def collection_period_month(at: date | datetime | None = None) -> date:
|
||||
if at is None:
|
||||
local_date = timezone.localdate()
|
||||
elif isinstance(at, datetime):
|
||||
local_date = timezone.localtime(at).date() if timezone.is_aware(at) else at.date()
|
||||
local_date = (
|
||||
timezone.localtime(at).date() if timezone.is_aware(at) else at.date()
|
||||
)
|
||||
else:
|
||||
local_date = at
|
||||
return local_date.replace(day=1)
|
||||
|
||||
Reference in New Issue
Block a user