diff --git a/src/Date.py b/src/Date.py deleted file mode 100644 index 082f93462..000000000 --- a/src/Date.py +++ /dev/null @@ -1,29 +0,0 @@ -# -# Gramps - a GTK+/GNOME based genealogy program -# -# Copyright (C) 2000-2006 Donald N. Allingham -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -# - -# $Id$ - -""" - -this module is only needed to to enable db upgrade - -""" - -from gen.lib import Date diff --git a/src/Utils.py b/src/Utils.py index 28eaa154a..524c6f5a2 100644 --- a/src/Utils.py +++ b/src/Utils.py @@ -50,7 +50,6 @@ from gen.display.name import displayer as name_displayer import gen.lib import Errors from gen.locale import codeset -from Date import Date import gen.datehandler from const import TEMP_DIR, USER_HOME, GRAMPS_UUID, IMAGE_DIR @@ -1579,7 +1578,7 @@ def format_time(secs): 24 hour time as hh:mm:ss. """ t = time.localtime(secs) - d = Date(t.tm_year, t.tm_mon, t.tm_mday) + d = gen.lib.Date(t.tm_year, t.tm_mon, t.tm_mday) return gen.datehandler.displayer.display(d) + time.strftime(' %X', t) #-------------------------------------------------------------------------