Skip to content

Commit

Permalink
Fix tz issue observer (#1725)
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng authored Feb 5, 2025
1 parent 25230b3 commit b4bdcfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion skyvern/forge/sdk/services/observer_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ async def mark_observer_task_as_completed(
)

# Track observer cruise duration when completed
duration_seconds = (datetime.now(UTC) - observer_task.created_at).total_seconds()
duration_seconds = (datetime.now(UTC) - observer_task.created_at.replace(tzinfo=UTC)).total_seconds()
LOG.info(
"Observer cruise duration metrics",
observer_cruise_id=observer_cruise_id,
Expand Down

0 comments on commit b4bdcfd

Please sign in to comment.