Level 12
Check your server for Locale extensions, see if they are installed there, u could start locally, and replicate in the server
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a Laravel project that have a blog module in it.In my localhost the date of creation of the article is displayed in french which is correct but when i publish my project online (shared host) the dates are still displayed in English. This is my code:
<?php
setlocale(LC_TIME, 'fr_FR');
echo strftime("%d %B %G", strtotime($lastNews->created_at));
?>
Please or to participate in this conversation.