helpers.py
changeset 62 e7ca94b94a4e
parent 60 759369a79527
child 63 416560b82116
equal deleted inserted replaced
61:d4b2b2fa9fc5 62:e7ca94b94a4e
    44     def now (self) :
    44     def now (self) :
    45         """
    45         """
    46             Build current time
    46             Build current time
    47         """
    47         """
    48 
    48 
    49         return self.ctx['timezone'].localize(datetime.datetime.now())
    49         return self.ctx['prefs'][preferences.timezone].localize(datetime.datetime.now())
    50 
    50 
    51     def today (self) :
    51     def today (self) :
    52         """
    52         """
    53             Build today's date
    53             Build today's date
    54         """
    54         """