Permalink
Browse files

Remove The H:M:S from by_year_String_or_Fixnum

This is because to_time has these defaulting to 0
  • Loading branch information...
1 parent 222d67f commit de86f6019c0f6c517e5346a7bf9d8db6d6ffdf27 @radar committed Feb 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/by_star/by_year.rb
View
2 lib/by_star/by_year.rb
@@ -14,7 +14,7 @@ def by_year_Time(time, options={})
end
def by_year_String_or_Fixnum(year, options={})
- time = "#{year.to_s}-01-01 00:00:00".to_time
+ time = "#{year.to_s}-01-01".to_time
by_year_Time(time, options)
end
alias_method :by_year_String, :by_year_String_or_Fixnum

0 comments on commit de86f60

Please sign in to comment.