Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

[Résolu]Comment afficher la date courante

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French
View previous topic :: View next topic  
Author Message
lan19
Smarty Rookie


Joined: 18 Mar 2011
Posts: 12

PostPosted: Sun Oct 02, 2011 12:26 am    Post subject: [Résolu]Comment afficher la date courante Reply with quote

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
View user's profile Send private message
Gowser
Smarty Pro


Joined: 19 Feb 2008
Posts: 104
Location: Nantes (France)

PostPosted: Tue Nov 15, 2011 12:57 pm    Post subject: Reply with quote

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 Smile
_________________
N'oubliez pas de mettre le tag "[Résolu]" sur vos post Smile
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: French All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP