Skip to content

Commit

Permalink
Removed tz offset
Browse files Browse the repository at this point in the history
  • Loading branch information
jmadden173 committed Feb 25, 2024
1 parent 85ea945 commit 0aff43f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/api/database/models/power_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def get_power_data_obj(
la_tz = timezone(timedelta(hours=0))

for row in db.session.execute(adj_units):
data["timestamp"].append(row.ts.replace(tzinfo=utc_tz).astimezone(la_tz))
data["timestamp"].append(row.ts)
data["v"].append(row.voltage)
data["i"].append(row.current)
data["p"].append(row.power)
Expand Down
2 changes: 1 addition & 1 deletion backend/api/database/models/teros_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def get_teros_data_obj(
la_tz = timezone(timedelta(hours=0))

for row in db.session.execute(stmt):
data["timestamp"].append(row.ts.replace(tzinfo=utc_tz).astimezone(la_tz))
data["timestamp"].append(row.ts)
data["vwc"].append(row.vwc)
data["temp"].append(row.temp)
data["ec"].append(row.ec)
Expand Down

0 comments on commit 0aff43f

Please sign in to comment.