/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/controllers/directory_ui.py

  • Committer: Robert Collins
  • Date: 2012-02-02 07:42:24 UTC
  • Revision ID: robertc@robertcollins.net-20120202074224-ujea2ocm1u1ws1en
    - Make tz calculations consistent and use UTC in the UI everywhere we show
      a precise timestamp. (Robert Collins, #594591)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
        if branch is not None:
36
36
            # If a branch is empty, bzr raises an exception when trying this
37
37
            try:
38
 
                self.last_change = datetime.datetime.fromtimestamp(
 
38
                self.last_change = datetime.datetime.utcfromtimestamp(
39
39
                    branch.repository.get_revision(
40
40
                        branch.last_revision()).timestamp)
41
41
            except: