forked from endorphant/ttbp
		
	modifying www feed timestamp
changed the timezone display to look neater
This commit is contained in:
		
							parent
							
								
									098d5a0bd2
								
							
						
					
					
						commit
						946f73290b
					
				| @ -710,7 +710,7 @@ def www_neighbors(users): | |||||||
| 
 | 
 | ||||||
|         if lastfile: |         if lastfile: | ||||||
|             last = os.path.getctime(lastfile) |             last = os.path.getctime(lastfile) | ||||||
|             timestamp = time.strftime("%Y-%m-%d at %H:%M", time.localtime(last)) + time.strftime(" (%z)") |             timestamp = time.strftime("%Y-%m-%d at %H:%M", time.localtime(last)) + " (utc"+time.strftime("%z")[0]+time.strftime("%z")[2]+")" | ||||||
|         else: |         else: | ||||||
|             timestamp = "" |             timestamp = "" | ||||||
|             last = 0 |             last = 0 | ||||||
|  | |||||||
| @ -707,7 +707,7 @@ def www_neighbors(users): | |||||||
| 
 | 
 | ||||||
|         if lastfile: |         if lastfile: | ||||||
|             last = os.path.getctime(lastfile) |             last = os.path.getctime(lastfile) | ||||||
|             timestamp = time.strftime("%Y-%m-%d at %H:%M", time.localtime(last)) + time.strftime(" (%z)") |             timestamp = time.strftime("%Y-%m-%d at %H:%M", time.localtime(last)) + " (utc"+time.strftime("%z")[0]+time.strftime("%z")[2]+")" | ||||||
|         else: |         else: | ||||||
|             timestamp = "" |             timestamp = "" | ||||||
|             last = 0 |             last = 0 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user