1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
>>> plone = app.plonesite
>>> plone.created()
DateTime('2010/11/15 13:39:42.694 GMT+1')
>>> plone.modified()
DateTime('2010/11/15 13:39:42.694 GMT+1')
>>> plone.bobobase_modification_time()
DateTime('2051/02/14 15:57:21.077 GMT+1')

# Try to set creation date according to
# http://plone.org/documentation/kb/set-creation-date
# setCreationDate doesn't work anymore

>>> from DateTime import DateTime
>>> d = DateTime('2010/11/16')
>>> plone.setModificationDate(d)
>>> plone.setCreationDate(d)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
AttributeError: setCreationDate
>>> plone.setEffectiveDate(d)
>>> plone.reindexObject()

>>> plone.created()
DateTime('2010/11/15 13:39:42.694 GMT+1')
>>> plone.modified()
DateTime('2010/11/16')
>>> plone.bobobase_modification_time()
DateTime('2051/02/14 15:57:21.077 GMT+1')