item.now is a field in my database whose default value is request.now. So I 
am confused why {{=prettydate(request.now, T)}} works and 
{{=prettydate(item.now, T)}} doesnt? Although I am looping through all the 
returned values from a db select and applying the prettydate function

On Tuesday, August 14, 2012 11:05:15 PM UTC+1, Anthony wrote:
>
> What error is being raised? What is the type of item.now?
>
> On Tuesday, August 14, 2012 6:00:31 PM UTC-4, Pystar wrote:
>>
>> I just noticed that doing {{=prettydate(request.now, T)}} in my views 
>> works, but doing {{=prettydate(item.now, T)}} doesnt work in my views, even 
>> when my default value in the database definition is request.now for the 
>> timestamp. What exactly am I doing wrong?
>>
>> On Tuesday, August 14, 2012 8:32:18 PM UTC+1, Pystar wrote:
>>>
>>> tried prettydate(item.timestamp, T) still didnt work
>>>
>>> On Tuesday, August 14, 2012 8:16:39 PM UTC+1, rochacbruno wrote:
>>>>
>>>> maybe
>>>>
>>>>   {{=prettydate(item.timestamp, *T*)}}
>>>>
>>>

-- 



Reply via email to