aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Dto
diff options
context:
space:
mode:
authorNils Lehnen <admin@nlehnen.de>2026-07-04 23:55:31 +0200
committerNils Lehnen <admin@nlehnen.de>2026-07-04 23:55:31 +0200
commitf8ffccae7fa65a27324667ccd156ca71fbfc89cd (patch)
treef3c82f7ee3338956476fdab79111aab18e44cc3d /Emby.Server.Implementations/Dto
parente2eaacd239e2ddf9ee93df7fcb63934d4fdfb2ac (diff)
Use InvariantCulture when parsing machine-generated dates
DateTime.TryParse without an IFormatProvider falls back to the current thread culture, so the same string can parse differently (or fail) depending on the server's locale. None of these call sites deal with user-entered text - they parse dates that come from filenames, an HTTP header, ffprobe metadata and values the app itself wrote to the auth database - so InvariantCulture is the correct provider everywhere here. Fixes the S6580 / CA1305 warnings on these call sites. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'Emby.Server.Implementations/Dto')
0 files changed, 0 insertions, 0 deletions