summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Helpers/TimeSpanHelper.cs
diff options
context:
space:
mode:
Diffstat (limited to 'win/CS/HandBrakeWPF/Helpers/TimeSpanHelper.cs')
-rw-r--r--win/CS/HandBrakeWPF/Helpers/TimeSpanHelper.cs9
1 files changed, 3 insertions, 6 deletions
diff --git a/win/CS/HandBrakeWPF/Helpers/TimeSpanHelper.cs b/win/CS/HandBrakeWPF/Helpers/TimeSpanHelper.cs
index 816b9ca82..91a4ee1d8 100644
--- a/win/CS/HandBrakeWPF/Helpers/TimeSpanHelper.cs
+++ b/win/CS/HandBrakeWPF/Helpers/TimeSpanHelper.cs
@@ -29,12 +29,9 @@ namespace HandBrakeWPF.Helpers
internal static TimeSpan ParseChapterTimeStart(string chapterStartRaw)
{
// Format: 02:35:05 and 02:35:05.2957333
- return TimeSpan.ParseExact(chapterStartRaw,
- new[]
- {
- @"hh\:mm\:ss", // Handle whole seconds
- @"hh\:mm\:ss\.FFFFFFF" // Handle fraction seconds
- }, CultureInfo.InvariantCulture);
+ return TimeSpan.ParseExact(
+ chapterStartRaw,
+ new[] { @"hh\:mm\:ss", @"hh\:mm\:ss\.FFFFFFF" }, CultureInfo.InvariantCulture); // Handle whole seconds then Handle fraction seconds
}
}
}