mirror of https://github.com/Icinga/icinga2.git
parent
c393a3678f
commit
b5a38f6707
|
@ -210,7 +210,7 @@ bool IcingaApplication::ResolveMacro(const String& macro, const CheckResult::Ptr
|
|||
double now = Utility::GetTime();
|
||||
|
||||
if (macro == "timet") {
|
||||
*result = now;
|
||||
*result = static_cast<long>(now);
|
||||
return true;
|
||||
} else if (macro == "long_date_time") {
|
||||
*result = Utility::FormatDateTime("%Y-%m-%d %H:%M:%S %z", now);
|
||||
|
|
Loading…
Reference in New Issue