Skip to content

Commit

Permalink
refactor: replace deprecated function datetime.utcnow()
Browse files Browse the repository at this point in the history
  • Loading branch information
sarabveer committed Mar 30, 2024
1 parent 36fcca0 commit ac2ee67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def send_to_influx(stats, config):
write_api = influx_client.write_api(write_options = SYNCHRONOUS)

series = []
current_time = datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%SZ')
current_time = datetime.now(datetime.UTC).strftime('%Y-%m-%dT%H:%M:%SZ')

for stats_down in stats['downstream']:
series.append(Point.from_dict({
Expand Down

0 comments on commit ac2ee67

Please sign in to comment.