Skip to content

Commit

Permalink
get rid of deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
hrw committed Nov 30, 2023
1 parent 73671cc commit 371346f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/generate-html-table.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/python3

from datetime import datetime
from datetime import datetime, timezone
from jinja2 import Environment, FileSystemLoader

import system_calls
Expand Down Expand Up @@ -66,7 +66,7 @@ def generate_html_file():
template = env.get_template('syscalls.html.j2')

output = template.render(generate_time=datetime.strftime(
datetime.utcnow(), "%d %B %Y %H:%M"),
datetime.now(timezone.utc), "%d %B %Y %H:%M"),
archs=create_arch_list(syscalls.archs()),
syscalls=generate_system_calls_tree(),
syscall_names=syscalls.names(),
Expand Down

0 comments on commit 371346f

Please sign in to comment.