Bashton Blog

TAG | locale

Sep/08

16

Setting the trac date format

Installing trac today, I realised there wasn’t any obvious way to change the date format, and all bugs report dates were showing in MM/dd/yy format – less than ideal for us here in the UK.

Fortunately, after some Googling, I found the way to alter this is to add the following to your Location tags in the Apache config:

PythonOption TracLocale en_GB

(Replacing en_GB with the appropriate locale for you).

This unfortunately doesn’t help if you have a trac installation which is likely to be used by people in multiple locales – if anyone knows of a way to achieve this a comment would be appreciated.

,

Find it!

Theme Design by devolux.nh2.me