mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
simple_away: Convert to UTC time
- convert to utc time - add tz to the away string subst
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