mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-06 05:14:29 +02:00
parent
b51a2c1c25
commit
e9db716b26
@ -636,7 +636,7 @@ bool IdoPgsqlConnection::FieldToEscapedString(const String& key, const Value& va
|
|||||||
} else if (DbValue::IsTimestamp(value)) {
|
} else if (DbValue::IsTimestamp(value)) {
|
||||||
long ts = rawvalue;
|
long ts = rawvalue;
|
||||||
std::ostringstream msgbuf;
|
std::ostringstream msgbuf;
|
||||||
msgbuf << "TO_TIMESTAMP(" << ts << ")";
|
msgbuf << "TO_TIMESTAMP(" << ts << ") AT TIME ZONE 'UTC'";
|
||||||
*result = Value(msgbuf.str());
|
*result = Value(msgbuf.str());
|
||||||
} else if (DbValue::IsTimestampNow(value)) {
|
} else if (DbValue::IsTimestampNow(value)) {
|
||||||
*result = "NOW()";
|
*result = "NOW()";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user