Changeset 1314
- Timestamp:
- 09/08/09 04:41:15 (11 months ago)
- Files:
-
- 1 modified
-
zgeo.atom/trunk/zgeo/atom/browser.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
zgeo.atom/trunk/zgeo/atom/browser.py
r1215 r1314 46 46 ts = zope.datetime.time(date) 47 47 return zope.datetime.iso8601_date(ts) 48 # Convert ISO or RFC 3339 datetime strings to RFC 333949 # Zope's ZDCAnnotatableAdapter gives RFC 3339. Lose the seconds precision50 #if str(date).find('T') == 10:51 # s = date.split('.')[0]52 # Plone's AT content types give ISO53 #else:54 # t = time.strptime(date, '%Y-%m-%d %H:%M:%S')55 # s = time.strftime('%Y-%m-%dT%H:%M:%S', t)56 #tz = '%03d:00' % -int(time.timezone/3600)57 #return s + tz58 48 59 49 def absoluteURL(ob, request):
