Commit Graph
3 Commits
Author SHA1 Message Date
mika@stocksharp.com 8b8d0a95ed Reporting: format durations with the invariant constant TimeSpan format
FormatExtensions formatted TimeSpan as hh\:mm\:ss, which drops sub-second precision and cannot
represent durations of a day or more. Use the constant (c) format with the invariant culture, matching
the JSON report representation.

Update the expected report fixtures accordingly and harden the CSV report tests to assert full rows
(including the fractional duration) under an invariant-culture scope, plus an exact trades row count.
2026-06-19 02:36:13 +03:00
mika@stocksharp.com af6c978608 Reporting: emit report dates as clean invariant ISO-8601
The CSV and XML report generators format DateTime through FormatExtensions.Format, which previously
delegated to Ecng's Converter.To<string>. After the Ecng update that started returning a
culture-invariant string the old culture-dependent golden fixtures (1/1/2024 12:00:00 AM) stopped
matching, and the full round-trip form it produced (2024-01-01T00:00:00.0000000Z) was verbose and
inconsistent with the JSON report.

Format the value explicitly as invariant ISO-8601 with "yyyy-MM-ddTHH:mm:ss.FFFFFFFK": the leading
'.' and the fractional digits are emitted only for a non-zero fraction, so whole-second values render
as 2024-01-15T10:00:00Z and all three report formats agree. Regenerate the CSV and XML golden fixtures
accordingly; the JSON fixture already used ISO and is unchanged.
2026-06-18 12:35:57 +03:00
mikasoukhov aa7715d95b Algo.Reporting -> Reporting. 2025-12-29 03:48:53 +03:00