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 07b608d4 Try to fix crash in applications_valid caused by recent
changes
07b608d4 is described below
commit 07b608d484a9cddd73ccf81953e95b6d922b85a7
Author: Sebb <[email protected]>
AuthorDate: Sat Jan 25 23:39:25 2025 +0000
Try to fix crash in applications_valid caused by recent changes
---
lib/whimsy/asf/meeting-util.rb | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/lib/whimsy/asf/meeting-util.rb b/lib/whimsy/asf/meeting-util.rb
index 1b5a796e..ac2a54af 100644
--- a/lib/whimsy/asf/meeting-util.rb
+++ b/lib/whimsy/asf/meeting-util.rb
@@ -388,11 +388,12 @@ module ASF
# returns: hash with keys: nominations_close:, polls_close:,
meeting_start, meeting_close:
def self.get_invite_times()
times = MeetingUtil.get_timeline(latest_meeting_dir)
- return {
- nominations_close: times['nominations_close_iso'],
- polls_close: times['polls_close_iso'],
- meeting_start: times['meeting_start_iso'],
- meeting_end: times['meeting_end_iso'],
+ # Needs more work to reconcile recent changes to time calculations
+ return { # TEMP HACK: return times in seconds, as per the original
get_invite_times method.
+ nominations_close:
DateTime.iso8601(times['nominations_close_iso']).to_time.to_i,
+ polls_close: DateTime.iso8601(times['polls_close_iso']).to_time.to_i,
+ meeting_start:
DateTime.iso8601(times['meeting_start_iso']).to_time.to_i,
+ meeting_end: DateTime.iso8601(times['meeting_end_iso']).to_time.to_i,
}
end