should calculate the difference between datetime.datetime.now() and your date. what web2py version are you using ?
On Wednesday, October 10, 2012 10:16:24 AM UTC+2, David Sorrentino wrote: > > Hello everybody, > > I am using the module *prettydate*, but it seems that it matches the > datetime I give as input with a wrong timezone. > > For example now it's 10:12 am at my place. > > This is the datetime I give as input: 2012-10-10 10:12:00. > > This is the code: > > from gluon.tools import prettydate >> pretty_d = prettydate(input_datetime, T) >> > > > And this is the result: "2 hours from now". > It's 2 hours in hurry!! :) > > Am I wrong in something? > > I wish you a wonderful Wednesday, > David > > > --

