Closed wolfpld closed 2 years ago
Exactly the same error here starting on years change.
Hmm. Seeing it myself as well. TIL that January 2022 is actually month 13 of 2021.
Fixed in https://github.com/milesmcc/shynet/commit/4b4c8f207e94ac1b692d75e0ee826c55fbe23a14. Will release shortly — in the meantime, the fixed build should be up on :edge
in a few minutes.
Fixed in v0.12.0, released just now. Happy new year!
It could be fixed by:
{
"name": "Last month",
"start": (now.replace(day=1) - timezone.timedelta(days=1)).replace(
day=1
),
"end": now.replace(day=1) - timezone.timedelta(days=1),
},
I can add PR with that.
Yep, that also makes sense. Would accept that PR.