# HG changeset patch # User cmlenz # Date 1185314936 0 # Node ID 2078b20186cf36e6e3225ac94b1f92c30528ba88 # Parent 166dcdb9269e8840797f4b3fcd5e4ae74caf9e35 Trac 0.11 compatibility fix in timeline event provider. diff --git a/bitten/trac_ext/web_ui.py b/bitten/trac_ext/web_ui.py --- a/bitten/trac_ext/web_ui.py +++ b/bitten/trac_ext/web_ui.py @@ -684,6 +684,11 @@ if 'build' not in filters: return + if isinstance(start, datetime): # Trac>=0.11 + from trac.util.datefmt import to_timestamp + start = to_timestamp(start) + stop = to_timestamp(stop) + add_stylesheet(req, 'bitten/bitten.css') db = self.env.get_db_cnx()