Opened 3 years ago

Closed 3 years ago

#20457 closed Cleanup/optimization (fixed)

Copyright footer on Trac says "2012" instead of "2013" as the rest of the website

Reported by: giuliettamasina Owned by: giuliettamasina
Component: * Version: master
Severity: Normal Keywords:
Cc: bmispelon@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: yes


The copyright info in the footer of Trac says "© 2005-2012 Django Software Foundation" instead of having 2013 as the upper year, as in the footer on

Change History (9)

comment:1 Changed 3 years ago by aaugustin

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted
  • Version set to master

It's defined here:

If somone knows the equivalent of {% now 'Y' %} in Genshi, that'd help :)

comment:2 Changed 3 years ago by giuliettamasina

  • Owner changed from nobody to giuliettamasina
  • Status changed from new to assigned

comment:3 Changed 3 years ago by svisser

It seems one can define it using Python's datetime: .

comment:4 Changed 3 years ago by giuliettamasina

Hmm, maybe a bit heavy to import a whole module just to print a simple year string? Or maybe not; I'm wondering if it could be performance measured somehow.

I will look into it and propose some sort of change, thanks for the info svisser :)

comment:5 Changed 3 years ago by aaugustin

I don't expect performance to be an issue. Importing a module is very fast once it's in sys.modules.

comment:6 Changed 3 years ago by giuliettamasina

Cool, I'll send in a pull request for this soonish.

comment:7 Changed 3 years ago by bmispelon

  • Cc bmispelon@… added
  • Has patch set

I was playing around a bit and I found that you have access to in the site.html context.

I couldn't find this documented anywhere so I'm not sure how reliable it is, but it worked on my local trac instance.

This makes the change rather trivial:

comment:8 Changed 3 years ago by aaugustin

  • Triage Stage changed from Accepted to Ready for checkin

As long as it works...

comment:9 Changed 3 years ago by aaugustin

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.
Back to Top