keephq / keep

The open-source alert management and AIOps platform
https://platform.keephq.dev
Other
3.25k stars 262 forks source link

fix: PostgreSQL datetime formatting with `to_char` #1299

Closed thomas-chauvet closed 3 months ago

thomas-chauvet commented 3 months ago

📑 Description

When using PostgreSQL as backend database an error occur when converting datetime to string with the to_char PostgreSQL function as it expects a specific formatting

✅ Checks

ℹ Additional Information

This PR fix a bug that makes unusable the web application. On Providers page, the KPI displaying the number of alerts per integration crashed. Thus, it is impossible to manage integration because of query crashing in the backend.

vercel[bot] commented 3 months ago

@thomas-chauvet is attempting to deploy a commit to the KeepHQ Team on Vercel.

A member of the Team first needs to authorize it.