This is an automated email from the ASF dual-hosted git repository.

curcuru 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 354c52af Include debug output and fixup ics parse
354c52af is described below

commit 354c52af4ff4e323913bf96100aad4a3a6a5a0bf
Author: Shane Curcuru <[email protected]>
AuthorDate: Fri Jan 20 16:54:57 2023 -0500

    Include debug output and fixup ics parse
---
 www/members/meeting.cgi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/www/members/meeting.cgi b/www/members/meeting.cgi
index 55dc1225..468b2882 100755
--- a/www/members/meeting.cgi
+++ b/www/members/meeting.cgi
@@ -16,7 +16,7 @@ ERROR_DATE = DateTime.new(1970, 1, 1) # An obvious error 
value 8-)
 # Return DateTime from DTSTART in an .ics file
 def ics2dtstart(f)
   begin
-    tmp = IO.readlines(f).find{ |i| i =~ /DTSTART:/ }.split(':')[1].strip
+    tmp = IO.readlines(f).find{ |i| i =~ /DTSTART;TZID=UTC:/ 
}.split(':')[1].strip
     return DateTime.parse(tmp)
   rescue StandardError
     return ERROR_DATE
@@ -109,6 +109,7 @@ _html do
               _br
               _ul do
                 _li ICS_FILE
+                _li "svn_mtg_dir = #{svn_mtg_dir}, cur_mtg_dir = 
#{cur_mtg_dir},"
               end
             end
           end

Reply via email to