'Regression tests for #17675
The date template filter has expects_localtime = True'

@setup({'regroup03': '{%    regroup    data    by    at|date:"m"    as    grouped    %}{%    for    group    in    grouped    %}{{    group.grouper    }}:{%    for    item    in    group.list    %}{{    item.at|date:"d"    }}{%    endfor    %},{%    endfor    %}'})
def test_regroup03(self):

    output = self.engine.render_to_string('regroup03', {'data': [{'at': date(2012, 2, 14)}, {'at': date(2012, 2, 28)}, {'at': date(2012, 7, 4)}]})
    self.assertEqual(output, '02:1428,07:04,')
