Fix an issue with trimester computation
This commit is contained in:
parent
2a4b185007
commit
64fe52a0bf
@ -60,14 +60,14 @@ def preprocess_hauts_de_seine(data):
|
|||||||
new_fields['date_debut'] = arrow.get(
|
new_fields['date_debut'] = arrow.get(
|
||||||
datetime.datetime(
|
datetime.datetime(
|
||||||
now.year,
|
now.year,
|
||||||
(now.month // 3) * 3,
|
max(1, min((now.month // 3) * 3, 12)),
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
).isoformat()
|
).isoformat()
|
||||||
new_fields['date_fin'] = arrow.get(
|
new_fields['date_fin'] = arrow.get(
|
||||||
datetime.datetime(
|
datetime.datetime(
|
||||||
now.year,
|
now.year,
|
||||||
(now.month // 3 + 1) * 3,
|
max(1, min((now.month // 3 + 1) * 3, 12)),
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
).isoformat()
|
).isoformat()
|
||||||
|
Loading…
Reference in New Issue
Block a user