searxng/searxng

Use `datetime.fromisoformat` instead of `datetime.strptime`

Open

#6.098 geöffnet am 19. Mai 2026

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Python (864 Forks)batch import
area:enginegood first issuenew feature

Repository-Metriken

Stars
 (6.303 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 3T 14h) (112 gemergte PRs in 30 T)

Beschreibung

Problem

  • We currently use something like date = datetime.strptime(date_string, "%Y-%m-%dT%H:%M:%S.%f"), although datetime.fromisoformat can handle that and is more robust

Describe the solution you'd like

  • Use datetime.fromisoformat instead.

Code of Conduct

  • I read the AI Policy and hereby confirm that this issue conforms with the policy.

Contributor Guide