jellyfin/MediaBrowser.MediaEncoding/Probing
Nils Lehnen f8ffccae7f 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>
2026-07-04 23:55:31 +02:00
..
CodecType.cs Improve ffprobe json parsing and don't log error for Codec Type attachment 2023-02-01 14:58:04 +01:00
FFProbeHelpers.cs Fix duplicate key collision 2026-06-12 11:44:26 -04:00
InternalMediaInfoResult.cs Improve dynamic HDR metadata handling (#13277) 2025-04-02 18:06:02 -06:00
MediaChapter.cs Switch chapter id to long to not break on ffmpeg 5.0 2022-02-27 21:04:11 +01:00
MediaFormatInfo.cs Enable nullable reference types for MediaBrowser.MediaEncoding.Subtitles 2021-05-20 22:10:19 +02:00
MediaFrameInfo.cs Improve dynamic HDR metadata handling (#13277) 2025-04-02 18:06:02 -06:00
MediaFrameSideDataInfo.cs Improve dynamic HDR metadata handling (#13277) 2025-04-02 18:06:02 -06:00
MediaStreamInfo.cs Only set IsAvc for video streams 2026-03-29 14:27:49 +02:00
MediaStreamInfoSideData.cs Apply suggestions from code review 2024-08-28 03:20:04 +08:00
ProbeResultNormalizer.cs Use InvariantCulture when parsing machine-generated dates 2026-07-04 23:55:31 +02:00