use unicode instead of QDateTime

This commit is contained in:
Andreas Preikschat 2013-04-02 17:24:27 +02:00
parent 0d621f8699
commit 7f111b31a7
2 changed files with 3 additions and 3 deletions

View File

@ -125,8 +125,7 @@ class Settings(QtCore.QSettings):
u'general/ccli number': u'',
u'general/has run wizard': False,
u'general/language': u'[en]',
# This defaults to yesterday in order to force the update check to run when you've never run it before.
u'general/last version test': QtCore.QDate.currentDate().addDays(-1),
u'general/last version test': u'',
u'general/loop delay': 5,
u'general/recent files': [],
u'general/save prompt': False,

View File

@ -29,6 +29,7 @@
"""
The :mod:`openlp.core.utils` module provides the utility libraries for OpenLP.
"""
from datetime import datetime
from distutils.version import LooseVersion
import logging
import locale
@ -183,7 +184,7 @@ def check_latest_version(current_version):
settings = Settings()
settings.beginGroup(u'general')
last_test = settings.value(u'last version test')
this_test = QtCore.QDate.currentDate()
this_test = unicode(datetime.now().date())
settings.setValue(u'last version test', this_test)
settings.endGroup()
# Tell the main window whether there will ever be data to display