diff --git a/heroic_api/tasks.py b/heroic_api/tasks.py index 6ddf8bc..5f8bbc5 100644 --- a/heroic_api/tasks.py +++ b/heroic_api/tasks.py @@ -30,7 +30,7 @@ def poll_rubin_schedule(): # Get the schedule from 15 minutes in the past until 25 hours later start = datetime.now() - timedelta(minutes=15) logger.info(f'Getting the Rubin schedule starting at {start.isoformat()}') - params = {'time': '25', 'start': start.isoformat()} + params = {'time': '25', 'start': start.strftime('%Y-%m-%d %H:%M:%S')} response = requests.get(settings.RUBIN_SCHEDULE_URL, params=params) response.raise_for_status()