Commit 3e4484ee authored by Kevin Deldycke's avatar Kevin Deldycke

Fix the bug which return creation_date as string instead of pure DateTime Object (thanks JPS).

Auto-delete trailing spaces.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8680 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0af640e1
...@@ -59,6 +59,7 @@ from CopySupport import CopyContainer, CopyError,\ ...@@ -59,6 +59,7 @@ from CopySupport import CopyContainer, CopyError,\
from Errors import DeferredCatalogError from Errors import DeferredCatalogError
from Products.CMFActivity.ActiveObject import ActiveObject from Products.CMFActivity.ActiveObject import ActiveObject
from Products.ERP5Type.Accessor.Accessor import Accessor as Method from Products.ERP5Type.Accessor.Accessor import Accessor as Method
from Products.ERP5Type.Accessor.TypeDefinition import asDate
from string import join from string import join
import sys import sys
...@@ -2161,7 +2162,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ): ...@@ -2161,7 +2162,7 @@ class Base( CopyContainer, PortalContent, ActiveObject, ERP5PropertyManager ):
# Then get the first line of edit_workflow # Then get the first line of edit_workflow
return history[0].get('time', None) return history[0].get('time', None)
if hasattr(self, 'CreationDate') : if hasattr(self, 'CreationDate') :
return self.CreationDate() return asDate(self.CreationDate())
return None return None
security.declareProtected(Permissions.AccessContentsInformation, 'getModificationDate') security.declareProtected(Permissions.AccessContentsInformation, 'getModificationDate')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment