now to use this you can do:
from gluon.tools import prettydate
{{=prettydate(request.now,T)}}
The T used to internationalize. T is optional.
On Feb 15, 7:30 pm, mdipierro wrote:
> oops. fixed.
>
> On Feb 15, 7:20 pm, Jose wrote:
>
> > Massimo,
>
> > After updating the following error occurs:
On 16 feb, 01:20, Jose wrote:
> Massimo,
>
> After updating the following error occurs:
>
> File "/usr/home/jose/w2p/gluon/tools.py", line 2970
> elif dt.days > 21:
> ^
> SyntaxError: invalid syntax
>
> Jose
Missing parenthesis in T('%d months ago' % int(dt.days / 30)
elif dt.da
oops. fixed.
On Feb 15, 7:20 pm, Jose wrote:
> Massimo,
>
> After updating the following error occurs:
>
> File "/usr/home/jose/w2p/gluon/tools.py", line 2970
> elif dt.days > 21:
> ^
> SyntaxError: invalid syntax
>
> Jose
--
You received this message because you are subscribed to th
3 matches
Mail list logo