Skip to content

Commit

Permalink
Remove TZ offset
Browse files Browse the repository at this point in the history
  • Loading branch information
jmadden173 committed Feb 25, 2024
1 parent 40ea19a commit 0012688
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 @@ -99,7 +99,7 @@ def get_power_data_obj(
).order_by(stmt.c.ts)

utc_tz = timezone.utc
la_tz = timezone(timedelta(hours=-8))
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))
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 @@ -92,7 +92,7 @@ def get_teros_data_obj(
)

utc_tz = timezone.utc
la_tz = timezone(timedelta(hours=-8))
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))
Expand Down

0 comments on commit 0012688

Please sign in to comment.