simple_away: Convert to UTC time

- convert to utc time
- add tz to the away string subst
This commit is contained in:
Jos Ahrens
2018-04-02 10:52:32 +00:00
parent 10c98e01a8
commit c6845b7fae

View File

@@ -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