Skip to content

Commit

Permalink
Fix date format. [#65]
Browse files Browse the repository at this point in the history
  • Loading branch information
marnen committed Dec 27, 2011
1 parent 3e36310 commit a33a032
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/initializers/app_globals.rb
Expand Up @@ -15,6 +15,6 @@

GeoRuby::SimpleFeatures::DEFAULT_SRID = 4326

Time::DATE_FORMATS.merge :ical => "%Y%m%d" # yyyymmdd, for iCal conversion
Date::DATE_FORMATS[:ical] = "%Y%m%d" # yyyymmdd, for iCal conversion

FONT_ROOT = "#{RAILS_ROOT}/fonts/dejavu-fonts-ttf-2.26/ttf"
2 changes: 1 addition & 1 deletion spec/views/events/ical.ics.erb_spec.rb
Expand Up @@ -32,6 +32,6 @@
end

it "should contain the date in iCal format" do
rendered.should have_content("DTSTART;VALUE=DATE:#{@event.date.to_s :ical}")
rendered.should have_content("DTSTART;VALUE=DATE:#{@event.date.strftime '%Y%m%d'}")
end
end

0 comments on commit a33a032

Please sign in to comment.