PB pour afficher les minutes dans un champs date

More
9 years 9 months ago #48485 by pierreHaut
Bonjour

Je fait une migration d'un site de Joomla 1.5 vers 2.5

Avec un affichage de la date de création des articles
Dans la version ancienne je faisais ça
%a %n %d %b - %Hh%M

Pour cette date par exemple
2013-10-05 20:30:50

ça affiche Sam 05 oct - 20h30


Apparemment dans la nouvelle version le formatage a évolué :

J'ai fait ça :
D d M - H

ce qui affiche
Sam 05 Oct - 20

J'y suis presque !
mais impossible d'afficher les minutes
m M %m %M mm MM hM HM ,
je crois avoir (presque) tout essayé

Question bête je pense, mais ça fait un moment que je cherche !
Merci pour vos réponses

Pi

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #48495 by micker
théoriquement c'est le formatage php qui est appliquer as tu regarder la doc ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #48496 by pierreHaut
Absolument, j'airegardé la dov

D'ailleurs j'avais commencé par faire un copier/Coller de mon site en production

Mes éssais :

D d M - H %M
Sam 05 Oct - 20 %Oct


D d M - H M

Sam 05 Oct - 20 Oct


D d M - H m

Sam 05 Oct - 20 10

D d M - H %m
Sam 05 Oct - 20 %10

--> php.net/manual/fr/function.strftime.php
%M Minute, sur 2 chiffres

Donc on dirait

- qu'il faut plus les "%"

- et que ça mélange les majuscules et les minuscules

(ou alors ça vient que je développe sous WAMP/Windows ? mais ça m'étonnerait

Pi

Please Log in or Create an account to join the conversation.

More
9 years 9 months ago #48588 by ggppdk
Hello

if it is date field , edit it and save it once, if you are using custom date in date field, then update it

if you have the dates in language string then you will need to update the language string

where exactly is this ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.266 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline