From 82554e03560f36e7c34a229818b809180af19fb8 Mon Sep 17 00:00:00 2001 From: Garret Alfert Date: Wed, 17 Jul 2013 12:05:18 +0200 Subject: [PATCH] Fix DateTime to timestamp conversion --- lib/remote_storage/riak.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/remote_storage/riak.rb b/lib/remote_storage/riak.rb index c0af723..b0dee5f 100644 --- a/lib/remote_storage/riak.rb +++ b/lib/remote_storage/riak.rb @@ -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 })