~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/browser/person.py

  • Committer: Nigel Babu
  • Date: 2011-08-28 09:03:09 UTC
  • mto: This revision was merged to the branch mainline in revision 13818.
  • Revision ID: nigelbabu@gmail.com-20110828090309-2i7cc6o6m3hsbroh
Added a timezone offset property

Show diffs side-by-side

added added

removed removed

Lines of Context:
3201
3201
                return True
3202
3202
 
3203
3203
        return False
3204
 
 
 
3204
 
 
3205
    @property
 
3206
    def show_time_offset(self):
 
3207
        """
 
3208
        Return the time-zone and offset from UTC
 
3209
        """
 
3210
        offset = datetime.now(pytz.timezone('Asia/Kolkata')).strftime("%z")
 
3211
        return offset
3205
3212
 
3206
3213
class PersonParticipationView(LaunchpadView):
3207
3214
    """View for the ~person/+participation page."""