default_time = datetime.time(12,00)
(row.start_hour or default_time) > request.now.time()

On Thursday, 29 March 2012 02:50:12 UTC-5, Kenny wrote:
>
> I tried to compare by doing
>
> {{=row.start_hour > request.now.time()}}<br/>
>
> start_hour is defined as 'time'
>
> error : 
>
> TypeError: can't compare datetime.time to NoneType
>
>
> How can I convert time field to be time type? so I can compare them. 
>
>
> Also, one last question is how can I show times in different timezone? 
> Do I need to use pypt?
>
> thank you.
>
>

Reply via email to