summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/utils.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-03-15 16:02:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-03-15 16:02:47 +0000
commit91243d1c1d3b2360aab5b134c74dcb279a9136d7 (patch)
tree0d3944785bce7dba47545d384e5f061c025e7616 /plugins/HistoryStats/src/utils.h
parent9487c9cfe6ab1572444fed37d234a4abfd18f3fb (diff)
crash fix for time handling in HistoryStats 64 bits (thx to white_tiger)
git-svn-id: http://svn.miranda-ng.org/main/trunk@8623 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/HistoryStats/src/utils.h')
-rw-r--r--plugins/HistoryStats/src/utils.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/HistoryStats/src/utils.h b/plugins/HistoryStats/src/utils.h
index 49cab7f9be..c68d124b45 100644
--- a/plugins/HistoryStats/src/utils.h
+++ b/plugins/HistoryStats/src/utils.h
@@ -7,14 +7,14 @@
namespace utils
{
// time formatting
- ext::string timestampToString(DWORD value, const TCHAR* format);
+ ext::string timestampToString(time_t value, const TCHAR* format);
ext::string tmStructToString(const tm& value, const TCHAR* format);
inline ext::string timestampToDateTime(DWORD value) { return timestampToString(value, _T("%c")); }
inline ext::string timestampToDate(DWORD value) { return timestampToString(value, _T("%x")); }
inline ext::string timestampToTime(DWORD value) { return timestampToString(value, _T("%X")); }
ext::string durationToString(DWORD value);
DWORD parseDate(const ext::string& date);
- inline ext::string formatDate(DWORD dwTimestamp) { return timestampToString(dwTimestamp, _T("%Y-%m-%d")); }
+ inline ext::string formatDate(time_t timeValue) { return timestampToString(timeValue, _T("%Y-%m-%d")); }
// number formatting
ext::string intToString(int value);
@@ -32,7 +32,7 @@ namespace utils
inline ext::string replaceAll(ext::string text, const TCHAR* find, const TCHAR* replace) { replaceAllInPlace(text, find, replace); return text; }
inline ext::string htmlEscape(ext::string text) { htmlEscapeInPlace(text); return text; }
const TCHAR* stripPrefix(const TCHAR* szPrefix, const TCHAR* szText);
- ext::string replaceVariables(const ext::string& strFormat, DWORD timeValue, const TCHAR* szNick = _T(""));
+ ext::string replaceVariables(const ext::string& strFormat, time_t timeValue, const TCHAR* szNick = _T(""));
// case conversion
ext::string toLowerCase(const ext::string& text);
@@ -176,4 +176,4 @@ public:
static ext::t::string filter(const ext::t::string& str);
};
-#endif // HISTORYSTATS_GUARD_UTILS_H \ No newline at end of file
+#endif // HISTORYSTATS_GUARD_UTILS_H