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 917979a  Fix up time syntax
917979a is described below

commit 917979a237fb46bf4b281d527f23f8b3b3659c84
Author: Sebb <[email protected]>
AuthorDate: Thu Jul 16 23:00:18 2020 +0100

    Fix up time syntax
---
 www/secretary/workbench/server.rb | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/secretary/workbench/server.rb 
b/www/secretary/workbench/server.rb
index c1405e4..827225d 100644
--- a/www/secretary/workbench/server.rb
+++ b/www/secretary/workbench/server.rb
@@ -11,6 +11,7 @@ require 'ruby2js/filter/require'
 require 'erb'
 require 'sanitize'
 require 'escape'
+require 'time' # for iso8601
 
 require_relative 'personalize'
 require_relative 'helpers'
@@ -72,7 +73,7 @@ get '/' do
     days = (((Time.now.to_i - epoch.to_i).to_f/SECS_TO_DAYS)).round(1)
     id = File.basename(file,'.*')
     @messages << {
-      time: Time.at(epoch.to_i).to_s,
+      time: Time.at(epoch.to_i).gmtime.iso8601,
       href: "/roster/committer/#{id}",
       from: ASF::Person.find(id).cn,
       subject: "Pending emeritus request - #{days.to_s} days old",

Reply via email to