Backend: date dei filtri dei report e utenti setup in ora italiana/UTC esplicito (#42)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-06 11:59:07 +02:00
parent 486e1288bf
commit 7ac291b8ac
3 changed files with 17 additions and 7 deletions
+5
View File
@@ -106,3 +106,8 @@ async def test_report_generated_at_is_local_time(
await report_service.generate_measurement_report(db_session, recipe.id)
assert "Generated 2026-10-06 10:00" in captured["html"]
def test_report_filter_day_is_local():
"""UTC naive 22:00 of Oct 5 is already Oct 6 in Europe/Rome (#42)."""
assert report_service._giorno_locale(datetime(2026, 10, 5, 22, 0, 0)) == "2026-10-06"