summaryrefslogtreecommitdiff
path: root/src/utils/stringutils.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-08 17:55:24 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-08 17:55:24 +0300
commit9547e64f0f25bb9f50cac9ba9dc035fbc051d4c2 (patch)
treef6ea56864f0d560cc5308d065b12d8744c101fa2 /src/utils/stringutils.cpp
parenta90b8bd891eea8b33b9a6dd2622f6d7ae596be71 (diff)
downloadplus-9547e64f0f25bb9f50cac9ba9dc035fbc051d4c2.tar.gz
plus-9547e64f0f25bb9f50cac9ba9dc035fbc051d4c2.tar.bz2
plus-9547e64f0f25bb9f50cac9ba9dc035fbc051d4c2.tar.xz
plus-9547e64f0f25bb9f50cac9ba9dc035fbc051d4c2.zip
Change timeToStr function parameter type from int to uint32_t.
Diffstat (limited to 'src/utils/stringutils.cpp')
-rw-r--r--src/utils/stringutils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/stringutils.cpp b/src/utils/stringutils.cpp
index ba6e46ee0..041003988 100644
--- a/src/utils/stringutils.cpp
+++ b/src/utils/stringutils.cpp
@@ -909,10 +909,10 @@ std::string removeToken(std::string &str, const std::string &token)
return str;
}
-std::string timeToStr(const int time)
+std::string timeToStr(const uint32_t time)
{
char buf[101];
- const long tempTime = static_cast<long>(time);
+ const uint64_t tempTime = static_cast<uint64_t>(time);
tm *const timeInfo = localtime(reinterpret_cast<const time_t*>(&tempTime));
if (strftime(&buf[0], 100, "%Y-%m-%d_%H-%M-%S", timeInfo))
return std::string(buf);