Fix DateTime to timestamp conversion
This commit is contained in:
		
							parent
							
								
									037987845a
								
							
						
					
					
						commit
						82554e0356
					
				@ -247,7 +247,7 @@ module RemoteStorage
 | 
				
			|||||||
        timestamp = if entry["timestamp"]
 | 
					        timestamp = if entry["timestamp"]
 | 
				
			||||||
                      entry["timestamp"].to_i
 | 
					                      entry["timestamp"].to_i
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                      DateTime.rfc2822(entry["last_modified"]).to_i
 | 
					                      DateTime.rfc2822(entry["last_modified"]).to_time.to_i
 | 
				
			||||||
                    end
 | 
					                    end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        listing.merge!({ entry_name => timestamp })
 | 
					        listing.merge!({ entry_name => timestamp })
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user