Closed saschagottfried closed 10 years ago
grid.TodoGrid.due_date_td
def due_date_td(self, col_num, i, item): """Generate the column for the due date. """ if item.due_date is None: return HTML.td('') span_class = 'due-date badge' if item.past_due: span_class += ' badge-important' due_date = localize_datetime(item._due_date, self.user_tz) span = HTML.tag( "span", c=HTML.literal(due_date.strftime('%Y-%m-%d %H:%M:%S')), class_=span_class, ) return HTML.td(span)
Now we do timezone handling in model
grid.TodoGrid.due_date_td