---
source: crates/ruff_linter/src/rules/flake8_datetimez/mod.rs
---
DTZ002 `datetime.datetime.today()` used
 --> DTZ002.py:4:1
  |
3 | # qualified
4 | datetime.datetime.today()
  | ^^^^^^^^^^^^^^^^^^^^^^^^^
5 |
6 | from datetime import datetime
  |
help: Use `datetime.datetime.now(tz=...)` instead

DTZ002 `datetime.datetime.today()` used
  --> DTZ002.py:9:1
   |
 8 | # unqualified
 9 | datetime.today()
   | ^^^^^^^^^^^^^^^^
10 |
11 | # uses `astimezone` method
   |
help: Use `datetime.datetime.now(tz=...)` instead
