diff options
Diffstat (limited to 'plugins/HistoryStats/src/column_splittimeline.cpp')
-rw-r--r-- | plugins/HistoryStats/src/column_splittimeline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/HistoryStats/src/column_splittimeline.cpp b/plugins/HistoryStats/src/column_splittimeline.cpp index 986c48e6e2..f28bc6cb6d 100644 --- a/plugins/HistoryStats/src/column_splittimeline.cpp +++ b/plugins/HistoryStats/src/column_splittimeline.cpp @@ -176,10 +176,10 @@ void ColSplitTimeline::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
{
|