refactor(centralui): add @namespace to KeysetPager/DateTimeRangeFilter + InvariantCulture parse (T35b/c review)

This commit is contained in:
Joseph Doherty
2026-06-18 19:46:27 -04:00
parent 67ff494bf5
commit c8915e8638
2 changed files with 5 additions and 1 deletions
@@ -1,3 +1,5 @@
@namespace ZB.MOM.WW.ScadaBridge.CentralUI.Components.Shared
@* Reusable from/to datetime-local input pair for filter bars.
INPUT-ONLY: emits raw DateTime? (Unspecified kind) via FromChanged / ToChanged.
UTC conversion is the caller's responsibility — no Apply button, no service injection. *@
@@ -52,6 +54,6 @@
if (string.IsNullOrWhiteSpace(raw))
return null;
return DateTime.TryParse(raw, out var dt) ? dt : null;
return DateTime.TryParse(raw, System.Globalization.CultureInfo.InvariantCulture, System.Globalization.DateTimeStyles.None, out var dt) ? dt : null;
}
}
@@ -1,3 +1,5 @@
@namespace ZB.MOM.WW.ScadaBridge.CentralUI.Components.Shared
@* Reusable keyset (cursor) pagination button bar — purely presentational.
All cursor/navigation logic lives in the consuming page via callbacks. *@