Overview
Comment:Ajout d'un format de date exotique
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | stable | 0.9.7
Files: files | file ages | folders
SHA1: e4c2076e26b8555fa3f47f28763a99265c44883a
User & Date: bohwaz on 2020-06-23 00:08:40
Other Links: manifest | tags
Context
2020-06-23
00:21
Afficher le lien vers l'historique des rappels dans tous les cas check-in: cba6b145a6 user: bohwaz tags: trunk, stable
00:08
Ajout d'un format de date exotique check-in: e4c2076e26 user: bohwaz tags: trunk, stable, 0.9.7
00:07
Un peu optimiste sur les capacit├ęs de SQLite, la conversion de format doit se faire manuellement en fait check-in: 7f5dfb0dcd user: bohwaz tags: trunk, stable, 0.9.7
Changes

Modified src/www/admin/upgrade.php from [bc8ddb2ada] to [accfe43dfe].

275
276
277
278
279
280
281
282
283
284
285
286
287
288
289

    if (version_compare($v, '0.9.7', '<'))
    {
        $db->begin();

        // Conversion des champs date
        $champs = (array) $config->get('champs_membres')->getAll();
        $formats = ['d/m/Y', 'd/m/Y H:i:s', 'd/m/Y H:i', 'd-m-Y'];

        foreach ($champs as $key => $champ) {
            if ($champ->type == 'date') {
                $target_format = 'Y-m-d';
            }
            elseif ($champ->type == 'datetime') {
                $target_format = 'Y-m-d H:i:s';







|







275
276
277
278
279
280
281
282
283
284
285
286
287
288
289

    if (version_compare($v, '0.9.7', '<'))
    {
        $db->begin();

        // Conversion des champs date
        $champs = (array) $config->get('champs_membres')->getAll();
        $formats = ['d/m/Y', 'd/m/Y H:i:s', 'd/m/Y H:i', 'd/m/y', 'd-m-Y'];

        foreach ($champs as $key => $champ) {
            if ($champ->type == 'date') {
                $target_format = 'Y-m-d';
            }
            elseif ($champ->type == 'datetime') {
                $target_format = 'Y-m-d H:i:s';