peculiar date format

Asked by Erwin Olario

I'm wondering why the date is formatted as mm dd, yy - mm dd, yy when listing school years. I was expecting it in mmm dd yyyy, or as set in my site preference: yyyy/mm/dd.

If I wasn't able to make myself clear, please look at the screenshot here: http://img116.imageshack.us/img116/4952/stdate.png

Question information

Language:
English Edit question
Status:
Solved
For:
SchoolTool Edit question
Assignee:
No assignee Edit question
Solved by:
Ignas Mikalajūnas
Solved:
Last query:
Last reply:
Revision history for this message
Best Ignas Mikalajūnas (ignas) said :
#1

Concerning the code - someone should replace mediumDate formatter to shortDate in:

schooltool/src/schooltool/schoolyear/browser/templates/schoolyear.pt

As for the explanation - we are trying to use the language set in your browser preferences as the guide when formatting dates, and date format setting in the site preferences is ignored most of the time. Even if it was not - there are 3 different formats for dates short/medium/long that are used around schooltool, and in the preferences you can only select the "short" format.

If you would "fix" the language setting in /etc/schooltool/schooltool-2009/main.conf by adding something like "lang en" that would disable the language autodetection. I am not sure if it would change the date format used though, as it might be the standard English medium date format.

Revision history for this message
Erwin Olario (gowin) said :
#2

Thanks for the "fix". It looks less confusing now.