aboutsummaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-12-13 19:50:53 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-12-13 19:50:53 +0000
commitdee918a74ce99cb059de73f0ea9369cecbdf9567 (patch)
treef2c7f7932ae90ccaeba72d1cc97d59864322c9c2 /ruby
parenteed895d5762216657d897196cc6dced9a9eb3225 (diff)
downloadpaludis-dee918a74ce99cb059de73f0ea9369cecbdf9567.tar.gz
paludis-dee918a74ce99cb059de73f0ea9369cecbdf9567.tar.xz
Timestamp wrapper class
Diffstat (limited to 'ruby')
-rw-r--r--ruby/metadata_key.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/ruby/metadata_key.cc b/ruby/metadata_key.cc
index 3305ae694..5bd33772a 100644
--- a/ruby/metadata_key.cc
+++ b/ruby/metadata_key.cc
@@ -26,6 +26,7 @@
#include <paludis/util/set.hh>
#include <paludis/util/sequence.hh>
#include <paludis/util/simple_visitor_cast.hh>
+#include <paludis/util/timestamp.hh>
#include <ruby.h>
using namespace paludis;
@@ -368,7 +369,7 @@ namespace
{
std::tr1::shared_ptr<const MetadataKey> * self_ptr;
Data_Get_Struct(self, std::tr1::shared_ptr<const MetadataKey>, self_ptr);
- return rb_time_new((std::tr1::static_pointer_cast<const MetadataTimeKey>(*self_ptr))->value(), 0);
+ return rb_time_new((std::tr1::static_pointer_cast<const MetadataTimeKey>(*self_ptr))->value().seconds(), 0);
}
catch (const std::exception & e)
{