Commits

takanao ENDOH  committed 90a7e45
  • Participants
  • Parent commits fc66aee

Comments (0)

Files changed (2)

         packages = ['tracgantt'],
         package_data={'tracgantt': ['templates/*.cs', 'htdocs/*.css']},
 
-        #install_requires = ['trac>=0.9'],
-        #entry_points = {'trac.plugins': ['module_name = gantt']},
+        install_requires = ['trac>=0.11'],
+        entry_points = {'trac.plugins': ['tracgantt = tracgantt']},
 
         author = "Will Barton",
         author_email = "wbb4@opendarwin.org",

File tracgantt/gantt.py

                     % (str(ticket.id), str(start), str(due))
 
         # Finally the ticket itself's open and close dates
-        open = datetime.date.fromtimestamp(ticket.time_created)
-        changed = datetime.date.fromtimestamp(ticket.time_changed)
+        open = ticket.time_created.date()
+        changed = ticket.time_changed.date()
 
         return (start, due, open, changed)