whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johndam...@apache.org
Subject [whimsy] branch master updated: WHIMSY-98 - Podling duration, use today instead of new.
Date Sat, 10 Jun 2017 14:40:34 GMT
This is an automated email from the ASF dual-hosted git repository.

johndament pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new c57f1e8  WHIMSY-98 - Podling duration, use today instead of new.
c57f1e8 is described below

commit c57f1e8da897c5979287437f198dd61f10837275
Author: John D. Ament <johndament@apache.org>
AuthorDate: Sat Jun 10 10:40:28 2017 -0400

    WHIMSY-98 - Podling duration, use today instead of new.
---
 lib/whimsy/asf/podlings.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/whimsy/asf/podlings.rb b/lib/whimsy/asf/podlings.rb
index 609f42f..922aa20 100644
--- a/lib/whimsy/asf/podlings.rb
+++ b/lib/whimsy/asf/podlings.rb
@@ -269,7 +269,7 @@ module ASF
       hash[:resourceAliases] = resourceAliases
       hash[:namesearch] = namesearch if namesearch
       hash[:sponsor] = @sponsor if @sponsor
-      enddate = Date.new()
+      enddate = Date.today
       enddate = Date.parse(@enddate) if @enddate
 
       hash[:duration] = (enddate - Date.parse(@startdate)).to_i

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message