diff --git a/src/gui/views/treemodels/peoplemodel.py b/src/gui/views/treemodels/peoplemodel.py index 521c8a95e..87ec4bdc6 100644 --- a/src/gui/views/treemodels/peoplemodel.py +++ b/src/gui/views/treemodels/peoplemodel.py @@ -131,7 +131,7 @@ class PeopleBaseModel(object): self.sort_death_day, self.column_death_place, self.column_spouse, - self.column_change, + self.sort_change, self.column_int_id, self.column_marker_text, self.column_marker_color, @@ -219,6 +219,9 @@ class PeopleBaseModel(object): def column_id(self, data): return data[COLUMN_ID] + def sort_change(self,data): + return "%012x" % data[COLUMN_CHANGE] + def column_change(self, data): return unicode( time.strftime('%x %X', diff --git a/src/gui/views/treemodels/repomodel.py b/src/gui/views/treemodels/repomodel.py index fb3d15f67..2d5ac4738 100644 --- a/src/gui/views/treemodels/repomodel.py +++ b/src/gui/views/treemodels/repomodel.py @@ -87,7 +87,7 @@ class RepositoryModel(FlatBaseModel): self.column_country, self.column_email, self.column_search_url, - self.column_change, + self.sort_change, self.column_handle, ] @@ -216,6 +216,9 @@ class RepositoryModel(FlatBaseModel): def column_tooltip(self,data): return "" + def sort_change(self,data): + return "%012x" % data[7] + def column_change(self,data): return unicode(time.strftime('%x %X',time.localtime(data[7])), GrampsLocale.codeset)