Trac Date formatting issues (uk - windows)

By default, it appears that Trac is using american date format (MM/dd/yyyy) for entry and display of dates.

This is very confusing for us (as a uk company) - so I've been searching for a way to switch the date format to the uk format (dd/MM/yyyy).

After much googling, it semed that the way to set the date format for trac, was to set the locale in the location tag within the apache httpd.conf that is being handled by mod_python.

PythonOption TracLocale [locale]

So I tried entering en_GB as the locale - and got this error:

PythonHandler trac.web.modpython_frontend: Error: unsupported locale setting

So after more googling, I found that on windows, I needed to use EN-GB rather than en_GB (see here).

So I made the change and restarted apache - the error was fixed - but Trac was still showing dates as MM/dd/yyyy!!!

As a temorary workarond, I have set the locale to i18n - which causes the dates to be displayed as dd.MM.yyyy - which at least is understandable - although it does mean we get an error if we attempt to input dates in the uk format.

Has anyone any idea how we can get Trac to display UK dates correctly?

Trac installed on Windows :) - Now What?

Well - I finally got round to finishing of the Apache, SVN Trac installation on one of our internal windows servers - and so far the process has been (mostly) painless (thanks mainly to the training we had as Scotch on the Rocks from Andy Allan).

SVN and Trac are both browseable via http through apache - and Trac is showing all the SVN commits I have made since creating the repository.

I have currently set up a single project within SVN and Trac - and before I go any further, I want to look at how to do the following:

  • Setting default settings for Trac Projects (Appearance, User Permissions, default items etc.)
  • Setting up web admin plugin for Trac, to avoid having to resort to the command line more than is necessary
  • Find a way of showing the name of the user for SVN commits etc. rather thean their login
  • Have a way of easily creating a new project - this will:
    • Request a project name - which will be used to
    • Create an SVN project
    • Create Empty Trunk / Tags / Branches structure within SVN
    • Create Trac project, and link to new SVN project
    • Set default Trac user permissions
    • Customise Trac Project as much as is necessary to confirm with requirments (Ideally as much as possible of this should be set as default and not need setting for each individual project
    I think most / all of this should be possible using a batch file - whether this the best way, I am not sure.
  • Configuring email settings for alerts etc.
  • Possibly integrating apache with Active Directory for user authentication - prefereably in such a way that Trac and SVN permissions are linked with an active directory security group e.g. Developers Group gets TracAdmin priveledges, authenticated users get basic priveledges etc.

I also need to get more familiar with trac - and decide on how exactly we will use it within the company.

I have seen various articles / blog post covering some of the points I've mentioned - but any further hints / tips / links would be gratfully appreciated.

BlogCFC was created by Raymond Camden. This blog is running version 5.5.1, hosted by TalkWebSolutions.