v8.4.9 : forma date output plain text

This commit is contained in:
fredtempez 2018-11-28 15:31:47 +01:00
parent 7ce2d64240
commit 5a20d0a9f2
3 changed files with 25 additions and 2 deletions

View File

@ -182,7 +182,7 @@ class form extends common {
$filter = helper::FILTER_STRING_LONG;
break;
case self::TYPE_DATETIME:
$filter = helper::FILTER_DATETIME;
$filter = helper::FILTER_STRING_SHORT;
break;
default:
$filter = helper::FILTER_STRING_SHORT;

View File

@ -0,0 +1,24 @@
/**
* This file is part of Zwii.
*
* For full copyright and license information, please see the LICENSE
* file that was distributed with this source code.
*
* @author Frédéric Tempez <frederic.tempez@outlook.com>
* @copyright Copyright (C) 2008-2018, Frédéric Tempez
* @license GNU General Public License, version 3
* @link http://zwiicms.com/
*/
/**
* Paramétrage du format de date
*/
$(function() {
$(".datepicker").flatpickr({
altInput: true,
altFormat: "d/m/Y",
enableTime: false,
locale: "fr",
dateFormat: "d/m/Y"
});
});

View File

@ -31,7 +31,6 @@
<?php echo template::date('formInput[' . $index . ']', [
'id' => 'formInput_' . $index,
'label' => $input['name'],
'value' => time(),
'vendor' => 'flatpickr'
]); ?>
<?php endif; ?>