Timestamps for sub-directories also have milliseconds resolution (refs #17)

This commit is contained in:
2012-10-24 06:09:28 +02:00
parent b8138a29f1
commit d1acfe88e8
2 changed files with 5 additions and 6 deletions

View File

@@ -137,7 +137,6 @@ module RemoteStorage
sub_directories(user, directory).each do |entry|
directory_name = CGI.unescape(entry["name"]).split("/").last
timestamp = entry["timestamp"].to_i
timestamp /= 1000 if timestamp.to_s.length == 13
listing.merge!({ "#{directory_name}/" => timestamp })
end