summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/utils/stringutils.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index 16f45932d..3cde2f208 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -927,8 +927,7 @@ std::string removeToken(std::string &str, const std::string &token)
std::string timeToStr(const uint32_t time)
{
char buf[101];
- time_t tempTime = reinterpret_cast<time_t>(
- static_cast<long int>(time));
+ const time_t tempTime = time;
tm *const timeInfo = localtime(&tempTime);
if (strftime(&buf[0], 100, "%Y-%m-%d_%H-%M-%S", timeInfo))
return std::string(buf);