From 03fcdf067b48e25821c0e3bf8f09f30f6ddcf686 Mon Sep 17 00:00:00 2001 From: davidtsadler Date: Sat, 18 Feb 2012 16:14:06 +0000 Subject: Rake task to create a new post. --- lib/random.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/random.rb') diff --git a/lib/random.rb b/lib/random.rb index 9204138..ecefd93 100644 --- a/lib/random.rb +++ b/lib/random.rb @@ -25,7 +25,7 @@ module TestPosts def self.date jdFrom = Date.today.prev_year.jd jdTo = Date.today.jd - Date.jd(rand((jdTo + 1) - jdFrom) + jdFrom) + Date.jd(rand((jdTo + 1) - jdFrom) + jdFrom).strftime('%Y-%m-%d') end end end -- cgit v1.2.3-13-gbd6f