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