Skip to content

Commit

Permalink
Atualizando utcnow na aula 07
Browse files Browse the repository at this point in the history
closes #249
  • Loading branch information
dunossauro committed Oct 2, 2024
1 parent 9acc6d5 commit 0043b1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aulas/07.md
Original file line number Diff line number Diff line change
Expand Up @@ -675,7 +675,7 @@ Com isso, todos os lugares onde as constantes eram usadas devem ser substituído
```python title="fast_zero/security.py"
def create_access_token(data: dict):
to_encode = data.copy()
expire = datetime.utcnow() + timedelta(
expire = datetime.now(tz=ZoneInfo('UTC')) + timedelta(
minutes=settings.ACCESS_TOKEN_EXPIRE_MINUTES
)
to_encode.update({'exp': expire})
Expand Down

0 comments on commit 0043b1e

Please sign in to comment.