diff options
Diffstat (limited to 'lib/random.rb')
| -rw-r--r-- | lib/random.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
