[Checkins] SVN: grokcore.component/trunk/README.txt Use .utcnow() in example. As the default dublin core modified subscribers
Jan-Wijbrand Kolman
janwijbrand at gmail.com
Mon Nov 24 08:17:07 EST 2008
Log message for revision 93305:
Use .utcnow() in example. As the default dublin core modified subscribers
will store UTC times as well, this makes the example more consistent with
zope.
Changed:
U grokcore.component/trunk/README.txt
-=-
Modified: grokcore.component/trunk/README.txt
===================================================================
--- grokcore.component/trunk/README.txt 2008-11-24 11:40:53 UTC (rev 93304)
+++ grokcore.component/trunk/README.txt 2008-11-24 13:17:06 UTC (rev 93305)
@@ -127,7 +127,7 @@
if target_language is None:
preferred = IUserPreferredLanguages(context)
target_language = preferred.getPreferredLanguages()[0]
-
+
translations = {'de': u'Hallo Welt',
'nl': u'Hallo Wereld'}
return translations.get(target_language, u'Hello World')
@@ -170,7 +170,7 @@
def updateDublinCoreAfterModification(obj, event):
"""Updated the Dublin Core 'Modified' property when a modified
event is sent for an object."""
- IZopeDublinCore(obj).modified = datetime.datetime.now()
+ IZopeDublinCore(obj).modified = datetime.datetime.utcnow()
API overview
More information about the Checkins
mailing list