Differences From Artifact [ebb0aada90]:

To Artifact [bf7e62d419]:


    37     37           }
    38     38   
    39     39           $date = date($format, $ts);
    40     40           $date = strtr($date, self::$french_date_names);
    41     41           $date = strtolower($date);
    42     42           return $date;
    43     43       }
           44  +
           45  +    static public function sqliteDateToFrench($d, $short = false)
           46  +    {
           47  +        if (strlen($d) == 10 || $short)
           48  +            return \DateTime::createFromFormat('Y-m-d', substr($d, 0, 10))->format('d/m/Y');
           49  +        elseif (strlen($d) == 16)
           50  +            return \DateTime::createFromFormat('Y-m-d H:i', $d)->format('d/m/Y H:i');
           51  +        else
           52  +            return \DateTime::createFromFormat('Y-m-d H:i:s', $d)->format('d/m/Y H:i');
           53  +    }
    44     54   
    45     55       static public function makeTimestampFromForm($d)
    46     56       {
    47     57           return mktime($d['h'], $d['min'], 0, $d['m'], $d['d'], $d['y']);
    48     58       }
    49     59   
    50     60       static public function modifyDate($str, $change)