mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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…
x
Reference in New Issue
Block a user