We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

How to change format date to dd/mm/yyyy [SOLVED] | Forum

ox-fr.org
ox-fr.org Jul 31 '14


Hello


I have changed settings to change format date to european = doesnt work.


So i go to :


date_time.php


Line 149 (for me) i changed:


$month . strftime(" %e", $timeStamp) :



To :



strftime(" %d %b %Y", $timeStamp) :      

    


But seems like it always in english and it supposed to be in french.


I cant translate it in panel admin and date_time.php


You can see in http://ox-fr.org


Can you take a look ?


Thank you in advance


Nico

The Forum post is edited by ox-fr.org Aug 9 '14
Alia Team
Alia Aug 6 '14
Are you referring to the fact the month names are in English?
If yes, then you need to make sure that they are translated to French in Admin Panel > Settings >Languages  (select your language instead of "English" in "Yo are editing ..." drop down list):


ox-fr.org
ox-fr.org Aug 6 '14


All is correct for french version.


- Since i make this modification as above in date_time.php it appear always in english.

- If i dont make this modification, european format date doesnt work.

- When i translate english version file to french, it appear always in english(it doesnt take traduction from oxwall i thing. Maybe from server?)

- Finally if i keep mm/dd/yyyy, all is in french.


But, i want to put dd/mm/yyyy in european format date.


Do you have any suggestion to make my dream realizable?


Thank you in advance

The Forum post is edited by ox-fr.org Aug 6 '14
Alia Team
Alia Aug 8 '14
Correct code to add is : strftime(" %d $month %Y", $timeStamp) :

So you should have $month, instead of %b . As a result system will be able to use  translated month names.


Alia Team
Alia Aug 8 '14
Topic was moved from Bug reports and troubleshooting.
ox-fr.org
ox-fr.org Aug 9 '14
Thank you for your help Oxwall !

Long life to the project.
Kali
Kali Feb 24 '15
For me it's working as well, but I'm getting this warning on my index page (below user list widget and above ocs site search quick search widget)
Message: strlen() expects parameter 1 to be string, array given File: /home1/kalianey/public_html/bonnieandclit/ow_utilities/date_time.php Line: 188

OW Debug - Warning Message: substr() expects parameter 1 to be string, array given File: /home1/kalianey/public_html/bonnieandclit/ow_utilities/date_time.php Line: 377

OW Debug - Warning Message: strlen() expects parameter 1 to be string, array given File: /home1/kalianey/public_html/bonnieandclit/ow_utilities/date_time.php Line: 188

OW Debug - Warning

Message: substr() expects parameter 1 to be string, array given File: /home1/kalianey/public_html/bonnieandclit/ow_utilities/date_time.php Line: 377
Any idea why?