Fix default grid filter when "local" date times are involved
This commit is contained in:
parent
13565d1c45
commit
230a54cb99
|
@ -652,7 +652,10 @@ class Grid(object):
|
|||
elif isinstance(column.type, sa.Date):
|
||||
factory = gridfilters.AlchemyDateFilter
|
||||
elif isinstance(column.type, sa.DateTime):
|
||||
factory = gridfilters.AlchemyDateTimeFilter
|
||||
if self.assume_local_times:
|
||||
factory = gridfilters.AlchemyLocalDateTimeFilter
|
||||
else:
|
||||
factory = gridfilters.AlchemyDateTimeFilter
|
||||
elif isinstance(column.type, GPCType):
|
||||
factory = gridfilters.AlchemyGPCFilter
|
||||
kwargs['column'] = column
|
||||
|
|
Loading…
Reference in a new issue