summaryrefslogtreecommitdiff
path: root/plugins/HistoryStats/src/column_split.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/HistoryStats/src/column_split.cpp')
-rw-r--r--plugins/HistoryStats/src/column_split.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/HistoryStats/src/column_split.cpp b/plugins/HistoryStats/src/column_split.cpp
index fd48189c48..48d47b579f 100644
--- a/plugins/HistoryStats/src/column_split.cpp
+++ b/plugins/HistoryStats/src/column_split.cpp
@@ -156,10 +156,10 @@ void ColSplit::impl_contactDataBeginAcquire()
if (params.alignment == 1)
{
- DWORD dwOffset = 0;
- tm offsetTM = *gmtime(reinterpret_cast<const time_t*>(&dwOffset));
+ time_t offset = 0;
+ struct tm* offsetTM = gmtime(&offset);
- m_nTimeOffset = 86400 * ((offsetTM.tm_wday + 6) % 7);
+ m_nTimeOffset = 86400 * ((offsetTM->tm_wday + 6) % 7);
}
else
{