Commits

Remy Blank committed 4191e7a

timeline: Fixed the "Today" and "Yesterday" labels in the timeline for non-GMT timezones.

Patch by jomae. Closes #9386.

Comments (0)

Files changed (1)

trac/timeline/web_ui.py

 
         data = {'fromdate': fromdate, 'daysback': daysback,
                 'authors': authors,
-                'today': format_date(today),
-                'yesterday': format_date(today - timedelta(days=1)),
+                'today': format_date(today, tzinfo=req.tz),
+                'yesterday': format_date(today - timedelta(days=1),
+                                         tzinfo=req.tz),
                 'precisedate': precisedate, 'precision': precision,
                 'events': [], 'filters': [],
                 'abbreviated_messages': self.abbreviated_messages}