Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

be a bit more specific about the part of the summary we are going to …

…parse
  • Loading branch information...
commit 5dea5cf93e59ad5ed4421ac0c4b59f4ee3f56020 1 parent 31360d5
Eaden eadz authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 app/views/pages/_events.html.erb
5 app/views/pages/_events.html.erb
View
@@ -1,9 +1,10 @@
<div class='panel third block_list' id='events'>
<h2>Upcoming Events</h2>
<ul>
- <% @events.each do |event| %>
+ <% @events.each do |event|
+ event_date = parse_date(event['summary'].split('When:')[1].split('to')[0])
+ %>
<li class='clearfix'>
- <% event_date = parse_date(event['summary']) %>
<span class='calendar clearfix'>
<span class='month'>
<%= event_date.strftime("%b") %>
Please sign in to comment.
Something went wrong with that request. Please try again.