diff options
Diffstat (limited to 'redfish-core/include/utils')
-rw-r--r-- | redfish-core/include/utils/time_utils.hpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/redfish-core/include/utils/time_utils.hpp b/redfish-core/include/utils/time_utils.hpp index 30011e3d9b..1708998798 100644 --- a/redfish-core/include/utils/time_utils.hpp +++ b/redfish-core/include/utils/time_utils.hpp @@ -53,7 +53,6 @@ inline std::optional<std::chrono::milliseconds> // P1DT1H1M1.100S P, Days, - T, Hours, Minutes, Seconds, @@ -74,14 +73,10 @@ inline std::optional<std::chrono::milliseconds> stage = ProcessingStage::Days; continue; } - if (stage == ProcessingStage::Days || stage == ProcessingStage::T) + if (stage == ProcessingStage::Days) { if (v.front() == 'T') { - if (stage == ProcessingStage::T) - { - return std::nullopt; - } v.remove_prefix(1); stage = ProcessingStage::Hours; continue; |