Fix DateTime to timestamp conversion

This commit is contained in:
Garret Alfert 2013-07-17 12:05:18 +02:00
parent 037987845a
commit 82554e0356

View File

@ -247,7 +247,7 @@ module RemoteStorage
timestamp = if entry["timestamp"]
entry["timestamp"].to_i
else
DateTime.rfc2822(entry["last_modified"]).to_i
DateTime.rfc2822(entry["last_modified"]).to_time.to_i
end
listing.merge!({ entry_name => timestamp })