whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: handle case where board meeting crosses a date boundary
Date Fri, 07 May 2021 13:04:48 GMT
This is an automated email from the ASF dual-hosted git repository.

rubys 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 026ace7  handle case where board meeting crosses a date boundary
026ace7 is described below

commit 026ace7b5d31a0db818410fa038c9a6e044829eb
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Fri May 7 09:04:28 2021 -0400

    handle case where board meeting crosses a date boundary
---
 lib/whimsy/asf/agenda.rb | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/whimsy/asf/agenda.rb b/lib/whimsy/asf/agenda.rb
index 1b619cb..b6f7e42 100644
--- a/lib/whimsy/asf/agenda.rb
+++ b/lib/whimsy/asf/agenda.rb
@@ -166,6 +166,11 @@ class ASF::Board::Agenda
       end
     end
 
+    # handle case where board meeting crosses a date boundary
+    if @sections.values.first['timestamp'] > @sections.values.last['timestamp']
+      @sections.values.last['timestamp'] += 86_400_000 # add one day
+    end
+
     @sections.values
   end
 

Mime
View raw message