View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Supportez nous sur Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - How to change the format of dates should be clearer - ProjeQtOr

Prochaines sessions de formation

Les prochaines formations et démonstrations sont ouvertes, inscrivez-vous rapidement !

 

Démonstration de ProjeQtOr

(gratuit, sur inscription)

Mardi 23 avril (10h30-12h)

Jeudi 16 mai (16h-17h30)

Jeudi 13 juin (10h30-12h)

 
 

Planifiez avec ProjeQtOr

3 et 4 avril (9h - 12h30)

 
 

Administrez avec ProjeQtOr

10 et 11 avril (9h - 12h30)

 

 

 
 

How to change the format of dates should be clearer

More
18 Nov 2012 16:16 #1 by jphuart
Hello,

Great job, it's a nice project. I was just annoyed by the format of dates that was only following american style and I didn't find in administration where was the parameter to define my favourite format.

Knowing dojo, I wanted to go in the DateTextBox widgets to test if just adding a constraint on the display format will work for me. I found that this was present on one file, but commented. So I guessed that there should be a good reason for that and reading other topics I realize that just changing the preferences of my browser (edit/preferences/content/languages) from en_US (the default I never changed) to fr_BE does exactly what I want.

Wonderful, I've learned something new that I should implement in my applications using dojo, but I think it's worth to mention it somewhere, then why not in the 'user parameters' page. The soft is able to detect the browser and then display the ad hoc message to instruct the user how to modify the browser's locale settings.

Thanks a lot for what you are doing.
Ciao

Jean Pierre
The topic has been locked.
More
18 Nov 2012 17:11 #2 by babynus
Hi,

Date and number formatting just uses Dojo default formatting, based on browser's locale.
There was a try to force format (maybe the commented code you found), to be able to propose to select format in the user parameters screen, but quickly faced issues on internationalization, because not taking into account all the possible formats for dates and numbers (particuliarly for some asian locales in China or Indonesia). :S
So I prefered let Dojo do it, because it does it right the good way. The constraint is that locale must be correctly defined in the browser parameters. ;)

Babynus
Administrator of ProjeQtOr web site
The topic has been locked.
More
18 Nov 2012 20:58 #3 by jphuart
Hi,

Ok well understood, and I think it's a good manner for dealing with locale formatting. By the way, this is not obvious for the user, and just explaining that in the user parameters page will be of great help and will avoid misunderstandings.

Ciao
Jean Pierre
The topic has been locked.
Moderators: babynusprotion
Time to create page: 0.030 seconds

Paramétrages de cookies

×

Cookies fonctionnels

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Veuillez vous connecter pour voir vos activités!

Autres cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.