diff options
author | rtk0c <[email protected]> | 2021-05-06 21:56:40 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2021-05-06 21:56:40 -0700 |
commit | 1fd1e4b5f2418e3ac2909658993bfedb615537ec (patch) | |
tree | 6de080d2273890f8a74d7fcd3572bb44f44ac545 /core/src/Utils/Time.cpp | |
parent | 538e804fc9beb83e711a210ffbb6badc15f285d5 (diff) |
Change brace style to on new line, add initial deliveries view when an order entry is selected
Diffstat (limited to 'core/src/Utils/Time.cpp')
-rw-r--r-- | core/src/Utils/Time.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/src/Utils/Time.cpp b/core/src/Utils/Time.cpp index d8e0bd1..bbdc313 100644 --- a/core/src/Utils/Time.cpp +++ b/core/src/Utils/Time.cpp @@ -2,7 +2,8 @@ #include <ctime> -std::string StringifyTimePoint(std::chrono::time_point<std::chrono::system_clock> tp) { +std::string StringifyTimePoint(std::chrono::time_point<std::chrono::system_clock> tp) +{ auto t = std::chrono::system_clock::to_time_t(tp); char data[32]; @@ -14,7 +15,8 @@ std::string StringifyTimePoint(std::chrono::time_point<std::chrono::system_clock return std::string(data); } -std::string StringifyTimeStamp(int64_t timeStamp) { +std::string StringifyTimeStamp(int64_t timeStamp) +{ if (timeStamp == 0) { return ""; } |