Permalink
Browse files

calendar tweaks

  • Loading branch information...
1 parent 7555b6c commit 02114dc92944cc330919c9334ab3f2edbaad9d88 @andyl committed Mar 28, 2012
Showing with 3 additions and 2 deletions.
  1. +1 −1 lib/event.rb
  2. +2 −1 views/calendar_ical.erb
View
2 lib/event.rb
@@ -52,7 +52,7 @@ def self.date_parse(date)
date.class == String ? Time.parse(date) : date
end
- def self.default_start() 1.day.ago; end
+ def self.default_start() 6.weeks.ago; end
def self.default_end() 1.year.from_now; end
def self.default_start_operation() 24.months.ago; end
def self.default_end_operation() 1.month.from_now; end
View
3 views/calendar_ical.erb
@@ -2,9 +2,10 @@ BEGIN:VCALENDAR
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:PUBLISH
-X-WR-CALNAME:BAMRU Calendar
+X-WR-CALNAME:BAMRU iCal
X-WR-TIMEZONE:America/Los_Angeles
X-WR-CALDESC:Calendar for the Bay Area Mountain Rescue Unit (http://bamru.org)
+PRODID:Bay Area Mountain Rescue Unit
<% @actions.each do |e| -%>
BEGIN:VEVENT
DTSTART:<%=e.dt_start%>

0 comments on commit 02114dc

Please sign in to comment.