mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Fix datetime.utcnow deprecation warning
This commit is contained in:
parent
eb8545c172
commit
261fc8d875
2 changed files with 6 additions and 3 deletions
|
|
@ -930,7 +930,7 @@ class Datasette:
|
|||
used_default = True
|
||||
self._permission_checks.append(
|
||||
{
|
||||
"when": datetime.datetime.utcnow().isoformat(),
|
||||
"when": datetime.datetime.now(datetime.timezone.utc).isoformat(),
|
||||
"actor": actor,
|
||||
"action": action,
|
||||
"resource": resource,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue