Skip to content

Commit

Permalink
fixed missing offset to :now
Browse files Browse the repository at this point in the history
  • Loading branch information
progrium committed Nov 10, 2009
1 parent f435053 commit a108278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timeapi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class App < Sinatra::Default
offset = TimeAPI::const_get(zone)

Chronic.parse(
params[:time], :now=>Time.new.utc
params[:time], :now=>Time.new.utc.to_datetime.new_offset(Rational(offset,24))
).to_datetime.new_offset(Rational(offset,24)).to_s
end

Expand Down

0 comments on commit a108278

Please sign in to comment.