avoid error because of missing timezone info in pure date objects
git-svn-id: svn://svn.cy55.de/Zope3/src/loops/trunk@4188 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
		
							parent
							
								
									29288745cb
								
							
						
					
					
						commit
						551351d59c
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -200,7 +200,7 @@ class ResourceView(BaseView): | ||||||
|         modified = self.modifiedRaw |         modified = self.modifiedRaw | ||||||
|         if modified: |         if modified: | ||||||
|             format = '%a, %d %b %Y %H:%M:%S %Z' |             format = '%a, %d %b %Y %H:%M:%S %Z' | ||||||
|             if getattr(modified.tzinfo, None) is None: |             if getattr(modified, 'tzinfo', None) is None: | ||||||
|                 format = format[:-3] + ' GMT' |                 format = format[:-3] + ' GMT' | ||||||
|             response.setHeader('Last-Modified', modified.strftime(format)) |             response.setHeader('Last-Modified', modified.strftime(format)) | ||||||
|         return data |         return data | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 helmutm
						helmutm