diff --git a/rest_api.py b/rest_api.py index f043187..d99530a 100644 --- a/rest_api.py +++ b/rest_api.py @@ -105,8 +105,14 @@ async def get_plots(house_alias: str, request: DataRequest, start_ms: int, end_m sorted_times, sorted_values = zip(*sorted_times_values) channels[key]['values'] = list(sorted_values) channels[key]['times'] = pd.to_datetime(list(sorted_times), unit='ms', utc=True) + if 'hp-idu' in key: + print(channels[key]['times'][0]) channels[key]['times'] = channels[key]['times'].tz_convert('America/New_York') + if 'hp-idu' in key: + print(channels[key]['times'][0]) channels[key]['times'] = [x.replace(tzinfo=None) for x in channels[key]['times']] + if 'hp-idu' in key: + print(channels[key]['times'][0]) # Create a BytesIO object for the zip file zip_buffer = io.BytesIO()