Skip to content

Commit

Permalink
Merge Predator
Browse files Browse the repository at this point in the history
  • Loading branch information
connervieira committed Jan 6, 2025
2 parents 63c2331 + da3110b commit 566ae47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ class style:
timezone_offset = time.timezone

# Get the timezone offset as a text stamp.
hours = offset // 3600
minutes = (offset // 60) % 60
hours = timezone_offset // 3600
minutes = (timezone_offset // 60) % 60
if hours < 0: # Check to see if the hours offset is negative.
sign = "-"
else:
Expand Down Expand Up @@ -898,6 +898,7 @@ def count_frames(video):
last_telemetry_sent = 0 # This holds the timestamp of the last time telemetry was sent.
def send_telemetry(data):
global last_telemetry_sent
data["system"] = {}
data["system"]["timezone"] = timezone_offset_stamp # Add the system timezone to the data.
# data = {
# "system": {
Expand Down

0 comments on commit 566ae47

Please sign in to comment.