|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
lan19 Smarty Rookie
Joined: 18 Mar 2011 Posts: 12
|
Posted: Sun Oct 02, 2011 12:26 am Post subject: [Résolu]Comment afficher la date courante |
|
|
Bonjour,
Je veux afficher la date courante dans un fichier tpl.
Je fais un :
Quote: | {$smarty.now|date_format:"%A %d %B %Y "} |
La date s'affiche : Sunday 02 October 2011
Alors que je la voudrais en français : Dimanche 02 Octobre 2011
Quelqu'un peut m'indiquer comment mettre cela en oeuvre ?
Salutations.
Last edited by lan19 on Sun Nov 11, 2012 12:07 pm; edited 1 time in total |
|
Back to top |
|
Gowser Smarty Pro
Joined: 19 Feb 2008 Posts: 104 Location: Nantes (France)
|
Posted: Tue Nov 15, 2011 12:57 pm Post subject: |
|
|
Bonjour,
Il faut se référer à la doc PHP pour la fonction "strftime" : http://fr2.php.net/strftime (dans la partie "valeur de retour")
Il faut que tu modifie ta local de ton serveur (ou de ton script) car celuici est en anglais _________________ N'oubliez pas de mettre le tag "[Résolu]" sur vos post |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|