On Fri, Mar 17, 2006 at 11:08:06AM +0000, Brian Chivers wrote:
> Really pleased with Schooltool for calendaring except for one issue that 
> users are moaning about :-(
> 
> Is it possible to change the date format in Schooltool from US YR/MONTH/DAY 
> to UK format DAY/MONTH/YEAR ??

The date format is configurable through the personal preferences page.
Unfortunately, the UK format is not presented as one of the choices.

If you filed a bug in the bug tracker, it's likely that it would be
fixed in the next maintenance release, but in the meantime you could
add several more formats by editing the file schooltool/person/interfaces.py.

Find the relevant place:

    dateformat = zope.schema.Choice(
        title=_("Date Format"),
        description=_("Date Format"),
        vocabulary=vocabulary([("%m/%d/%y", _("MM/DD/YY")),
                               ("%Y-%m-%d", _("YYYY-MM-DD")),
                               ("%d %B, %Y", _("Day Month, Year"))]))

And add your preferred format, e.g.:

    dateformat = zope.schema.Choice(
        title=_("Date Format"),
        description=_("Date Format"),
        vocabulary=vocabulary([("%m/%d/%y", _("MM/DD/YY")),
                               ("%Y-%m-%d", _("YYYY-MM-DD")),
                               ("%d.%m.%Y", _("DD.MM.YYYY")),
                               ("%d %B, %Y", _("Day Month, Year"))]))

Hope this helps,
Albertas
_______________________________________________
Schooltool mailing list
[email protected]
http://lists.schooltool.org/mailman/listinfo/schooltool

Reply via email to