From: <ps...@us...> - 2010-08-30 09:50:19
|
Revision: 2114 http://znc.svn.sourceforge.net/znc/?rev=2114&view=rev Author: psychon Date: 2010-08-30 09:50:12 +0000 (Mon, 30 Aug 2010) Log Message: ----------- simple_away: Honour timzone offset setting Modified Paths: -------------- trunk/modules/simple_away.cpp Modified: trunk/modules/simple_away.cpp =================================================================== --- trunk/modules/simple_away.cpp 2010-08-30 08:58:29 UTC (rev 2113) +++ trunk/modules/simple_away.cpp 2010-08-30 09:50:12 UTC (rev 2114) @@ -189,6 +189,7 @@ sReason = SIMPLE_AWAY_DEFAULT_REASON; time_t iTime = time(NULL); + iTime += (time_t)(m_pUser->GetTimezoneOffset() * 60 * 60); // offset is in hours CString sTime = ctime(&iTime); sTime.Trim(); sReason.Replace("%s", sTime); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |