File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
electricitymap/contrib/parsers Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,7 @@ def fetch_grid_india_report(
385385 """
386386
387387 GRID_INDIA_BACKEND_URL = "https://webapi.grid-india.in"
388- GRID_INDIA_CDN_URL = "https://webcdn.grid-india.in/ "
388+ GRID_INDIA_CDN_URL = "https://webcdn.grid-india.in"
389389
390390 GRID_INDIA_BACKEND_WITH_PROXY_URL = (
391391 f"{ INDIA_PROXY_NO_VPC_CONNECTOR } /api/v1/file?host={ GRID_INDIA_BACKEND_URL } "
@@ -608,8 +608,8 @@ def parse_daily_production_grid_india_report(
608608
609609 # Next, create a DatetimeIndex for the 24 hours of the target_datetime
610610 start_of_day = target_datetime .replace (hour = 0 , minute = 0 , second = 0 , microsecond = 0 )
611- hourly_index = pd .date_range (start = start_of_day , periods = 24 , freq = "H" ).tz_localize (
612- IN_TZ
611+ hourly_index = pd .date_range (start = start_of_day , periods = 24 , freq = "H" ).tz_convert (
612+ tz = IN_TZ
613613 )
614614
615615 # Set this as the index of your new DataFrame
You can’t perform that action at this time.
0 commit comments