From d5722df90ff2f276578752379c0b8985d7e33d37 Mon Sep 17 00:00:00 2001
From: "marcimat@rezo.net" <>
Date: Sat, 6 May 2017 18:35:12 +0000
Subject: [PATCH] Traiter la date en timestamp...

---
 action/editer_document.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/action/editer_document.php b/action/editer_document.php
index 0c010542..9d75ace8 100644
--- a/action/editer_document.php
+++ b/action/editer_document.php
@@ -200,7 +200,7 @@ function document_instituer($id_document, $champs = array()) {
 			"objet!='document' AND id_document=" . intval($id_document)
 		);
 		// On aura 19 jours 3h14 et 7 secondes pour corriger en 2038 (limitation de la représentation POSIX du temps sur les 32 bits)
-		$date_publication = '2038-01-01 00:00:00';
+		$date_publication = strtotime('2038-01-01 00:00:00');
 		include_spip('base/objets');
 		while ($row = sql_fetch($res)) {
 			if (
-- 
GitLab