I want to return to a user a days in specific language (cs_CZ)
I have this script:
<?php
$date = (new \DateTime($log['date']))->format('d.m.Y');
$date_name = (new \DateTime($log['date']))->format('D');
?>
I made from that this, but its not working:
<?php
setlocale(LC_ALL, 'cs_CZ');
$date = (new \DateTime($log['date']))->format('d.m.Y');
$date_name = (new \DateTime($log['date']))->format(strftime("%a"));
?>
What should be the problem?