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 b4980af fix time when meeting time is not found in calendar.txt
b4980af is described below
commit b4980af4a683a0b8853a03cf9b8e55091dc04af1
Author: Sam Ruby <[email protected]>
AuthorDate: Tue Jan 14 02:57:32 2020 -0500
fix time when meeting time is not found in calendar.txt
---
lib/whimsy/asf/board.rb | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/whimsy/asf/board.rb b/lib/whimsy/asf/board.rb
index 4f8f678..39367cb 100644
--- a/lib/whimsy/asf/board.rb
+++ b/lib/whimsy/asf/board.rb
@@ -39,11 +39,13 @@ module ASF
require 'chronic'
this_month = Time.now.strftime('%B')
- time ||= Chronic.parse("3rd wednesday in #{this_month}")
+ time = Chronic.parse("3rd wednesday in #{this_month}")
if not time or time < Time.now.utc
time = Chronic.parse('3rd wednesday next month')
end
+
+ time = TIMEZONE.local_to_utc(Time.parse("#{time.to_date} 10:30am"))
end
time