Skip to content

Commit

Permalink
Recent activities now have proper date. Closes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
southpolesteve committed Jan 12, 2012
1 parent 1299564 commit e18de22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/users/dashboard.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%h2 Recent Activities
- @recent_events.each do |event|
%p
= link_to "Again!", events_path(:event => {:completed_date => Date.today, :activity_id => event.activity_id, :count => event.count }), :method => 'post', :class => 'btn success'
= link_to "Again!", events_path(:event => {:completed_date => (Time.now.utc + Time.zone_offset('CST')).to_date, :activity_id => event.activity_id, :count => event.count }), :method => 'post', :class => 'btn success'
#{pluralize(event.count, (event.activity.unit ? event.activity.unit : event.activity.name))}
= " #{event.activity.unit ? event.activity.name : nil}"
.span5
Expand Down

0 comments on commit e18de22

Please sign in to comment.