This is an automated email from the ASF dual-hosted git repository.
sebb 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 0680f23 Save more accurate times (can always truncate for display)
0680f23 is described below
commit 0680f23d5897a88ce1009359fcda9c313937a3eb
Author: Sebb <[email protected]>
AuthorDate: Thu Jul 5 17:40:09 2018 +0100
Save more accurate times (can always truncate for display)
---
www/project/icla/views/actions/discuss.json.rb | 2 +-
www/project/icla/views/actions/vote.json.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/project/icla/views/actions/discuss.json.rb
b/www/project/icla/views/actions/discuss.json.rb
index 3b29e64..9d9931a 100644
--- a/www/project/icla/views/actions/discuss.json.rb
+++ b/www/project/icla/views/actions/discuss.json.rb
@@ -27,7 +27,7 @@ rescue
_focus :iclaemail
end
# create the discussion object
-date = Time.now.to_date.to_s
+date = Time.now.utc.to_s
contributor = {:name => @iclaname, :email => @iclaemail}
comment = @proposalText + "\n" + @discussComment
comments = [{:member => @proposer, :timestamp => date, :comment => comment}]
diff --git a/www/project/icla/views/actions/vote.json.rb
b/www/project/icla/views/actions/vote.json.rb
index 522a686..123e67e 100644
--- a/www/project/icla/views/actions/vote.json.rb
+++ b/www/project/icla/views/actions/vote.json.rb
@@ -26,7 +26,7 @@ rescue
_focus :iclaemail
end
# create the vote object
-date = Time.now.to_date.to_s # requires 'time' (seems to be pulled in by
'mail')
+date = Time.now.utc.to_s # need HMS in order to calculate accurate elapsed
times
contributor = {:name => @iclaname, :email => @iclaemail}
comment = @proposalText + "\n" + @voteComment
votes = [{:vote =>'+1', :member => @proposer, :timestamp => date, :comment =>
comment}]