searxng/searxng
Auf GitHub ansehenUse `datetime.fromisoformat` instead of `datetime.strptime`
Open
#6.098 geöffnet am 19. Mai 2026
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"), althoughdatetime.fromisoformatcan handle that and is more robust
Describe the solution you'd like
- Use
datetime.fromisoformatinstead.
Code of Conduct
- I read the AI Policy and hereby confirm that this issue conforms with the policy.