mirror of
https://github.com/znc/znc.git
synced 2026-05-01 11:02:27 +02:00
Merge pull request #1506 from Zarthus/feature/simpleaway-timezone-info-utc
simple_away: Convert to UTC time
This commit is contained in:
@@ -211,7 +211,7 @@ class CSimpleAway : public CModule {
|
||||
if (sReason.empty()) sReason = SIMPLE_AWAY_DEFAULT_REASON;
|
||||
|
||||
time_t iTime = time(nullptr);
|
||||
CString sTime = CUtils::CTime(iTime, GetUser()->GetTimezone());
|
||||
CString sTime = CUtils::CTime(iTime, "Etc/UTC") + " UTC";
|
||||
sReason.Replace("%awaytime%", sTime);
|
||||
sReason = ExpandString(sReason);
|
||||
sReason.Replace("%s", sTime); // Backwards compatibility with previous
|
||||
|
||||
Reference in New Issue
Block a user