merge r47140, r47290, r47579 from davisagli-features: fix timezone handling when migrating legacy comments and when indexing

svn path=/plone.app.discussion/trunk/; revision=48358
This commit is contained in:
David Glick
2011-04-02 21:26:36 +00:00
parent 9d83b4f0e6
commit 636bca745c
5 changed files with 27 additions and 12 deletions
+6 -3
View File
@@ -100,7 +100,8 @@ def effective(object):
object.creation_date.day,
object.creation_date.hour,
object.creation_date.minute,
object.creation_date.second)
object.creation_date.second,
'GMT')
@indexer(IComment)
def created(object):
@@ -110,7 +111,8 @@ def created(object):
object.creation_date.day,
object.creation_date.hour,
object.creation_date.minute,
object.creation_date.second)
object.creation_date.second,
'GMT')
@indexer(IComment)
def modified(object):
@@ -120,7 +122,8 @@ def modified(object):
object.modification_date.day,
object.modification_date.hour,
object.modification_date.minute,
object.modification_date.second)
object.modification_date.second,
'GMT')
# Override the conversation indexers for comments