mirror of
https://github.com/Icinga/icinga2.git
synced 2025-05-28 10:20:17 +02:00
Merge pull request #6622 from Icinga/bugfix/ido-pgsql-cleanup-timestamp-utc
Ensure to use UTC timestamps for IDO PgSQL cleanup queries
This commit is contained in:
commit
eee4426dcb
@ -945,7 +945,7 @@ void IdoPgsqlConnection::InternalCleanUpExecuteQuery(const String& table, const
|
||||
|
||||
Query("DELETE FROM " + GetTablePrefix() + table + " WHERE instance_id = " +
|
||||
Convert::ToString(static_cast<long>(m_InstanceID)) + " AND " + time_column +
|
||||
" < TO_TIMESTAMP(" + Convert::ToString(static_cast<long>(max_age)) + ")");
|
||||
" < TO_TIMESTAMP(" + Convert::ToString(static_cast<long>(max_age)) + ") AT TIME ZONE 'UTC'");
|
||||
}
|
||||
|
||||
void IdoPgsqlConnection::FillIDCache(const DbType::Ptr& type)
|
||||
|
Loading…
x
Reference in New Issue
Block a user