mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-19 13:09:27 +00:00
change dateFormat Tab Notizen
This commit is contained in:
@@ -156,10 +156,10 @@ class Notiz_model extends DB_Model
|
||||
$qry = "
|
||||
SELECT
|
||||
n.*, count(dms_id) as countDoc, z.notizzuordnung_id,
|
||||
TO_CHAR (CASE
|
||||
(CASE
|
||||
WHEN n.updateamum >= n.insertamum THEN n.updateamum
|
||||
ELSE n.insertamum
|
||||
END::timestamp, 'DD.MM.YYYY HH24:MI:SS') AS lastUpdate,
|
||||
END) AS lastUpdate,
|
||||
regexp_replace(n.text, '<[^>]*>', '', 'g') as text_stripped,
|
||||
TO_CHAR(n.start::timestamp, 'DD.MM.YYYY') AS start_format,
|
||||
TO_CHAR(n.ende::timestamp, 'DD.MM.YYYY') AS ende_format,
|
||||
|
||||
@@ -116,7 +116,27 @@ export default {
|
||||
{title: "Notizzuordnung_id", field: "notizzuordnung_id", width: 164, visible: false},
|
||||
{title: "type_id", field: "type_id", width: 164, visible: false},
|
||||
{title: "extension_id", field: "id", width: 135, visible: false},
|
||||
{title: "letzte Änderung", field: "lastupdate", width: 146, visible: false},
|
||||
{
|
||||
title: "letzte Änderung",
|
||||
field: "lastupdate",
|
||||
width: 146,
|
||||
visible: false,
|
||||
formatter: function (cell) {
|
||||
const dateStr = cell.getValue();
|
||||
if (!dateStr) return "";
|
||||
|
||||
const date = new Date(dateStr);
|
||||
return date.toLocaleString("de-DE", {
|
||||
day: "2-digit",
|
||||
month: "2-digit",
|
||||
year: "numeric",
|
||||
hour: "2-digit",
|
||||
minute: "2-digit",
|
||||
second: "2-digit",
|
||||
hour12: false
|
||||
});
|
||||
}
|
||||
},
|
||||
{
|
||||
title: 'Aktionen', field: 'actions',
|
||||
width: 100,
|
||||
|
||||
Reference in New Issue
Block a user