I've been having alot of trouble with formating a date with my localization using Laravel and Homestead (I don't know if homestead has any kinda server configurations which make it doesn't work but thats my though). I guess anyone around the internet have been struggling with the same issue. I've been searching for an answer for hours without getting anywhere closer to a solution.. This is my code.
public function formated_start()
{
setlocale(LC_ALL, 'sv_SE');
return strftime('%A %H:%M', strtotime($this->start));
}
I've also tried with laravel specific
public function formated_start()
{
App::setLocale('sv_SE')
return strftime('%A %H:%M', strtotime($this->start));
}
Still with the same result nothing changed and the %A which should be the day of week in my language in this case Swedish is still in English.