diff --git a/nise/__main__.py b/nise/__main__.py index a8bfd4e1..e5d895bb 100644 --- a/nise/__main__.py +++ b/nise/__main__.py @@ -700,7 +700,9 @@ def _load_static_report_data(options): end_date = attributes.get("end_date", options.get("end_date")) generated_end_date = today() - if end_date and end_date != today().date(): + if end_date and ( + end_date.date() != today().date() or (isinstance(end_date, datetime.datetime) and end_date.hour != 0) + ): generated_end_date = calculate_end_date(generated_start_date, end_date) if options.get("provider") == "azure":