mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
simple_away: Honour timzone offset setting
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2114 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -189,6 +189,7 @@ private:
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user