From 0a8e9bfe37716d86b814ca3f9a7e82bd3802e852 Mon Sep 17 00:00:00 2001 From: Diego Joss Date: Sun, 8 Jun 2025 23:01:24 +0200 Subject: [PATCH] admin: publish date without time --- static/admin/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/admin/config.yml b/static/admin/config.yml index a5abf62..cf5eb5b 100644 --- a/static/admin/config.yml +++ b/static/admin/config.yml @@ -25,7 +25,7 @@ collections: fields: - { label: "Titre", name: "title", widget: "string" } - { label: "Date", name: "expiryDate", widget: "datetime", date_format: "YYYY-MM-DD" } - - { label: "Date publication", name: "publishDate", widget: "datetime", default: "{{now}}" } + - { label: "Date publication", name: "publishDate", widget: "datetime", date_format: "YYYY-MM-DD", default: "{{now}}" } - { label: "Type", name: "type", widget: "select", default: "autre", options: [ski, camp, AG, autre] } - { label: "Contenu", name: "body", widget: "markdown", modes: [rich_text] }