refactor(centralui): add @namespace to KeysetPager/DateTimeRangeFilter + InvariantCulture parse (T35b/c review)
This commit is contained in:
@@ -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. *@
|
||||
|
||||
|
||||
Reference in New Issue
Block a user