Properties: Date format not following system settings on Linux (LANG vs LC_TIME)

I have been struggling with the formatting of the dates and times in note properties for a while now.

Since I wanted all dates in ISO format and times in 24-hour format I tried multiple methods, but some did not work and the others were a hassle to setup. The properties stubbornly insisted on US formatting.

In the end I installed a plugin called Pretty properties

This allows me to set custom formatting. The only downside is, that the formatting changes to US format when editing the value.