current_datetime = datetime.now().date()
params = {
"range": {
"from": current_datetime,
"to": "2022-12-17",
"timezone": "Europe/Moscow",
"interval": "today"
},
current_datetime = json.dumps(current_datetime, indent=4, sort_keys=True, default=str)
{'error': 'DateTimeImmutable::__construct(): Failed to parse time string ("2022-12-17") at position 0 ("): Unexpected character'}