Skip to content

Commit

Permalink
put optimization in the wrong spot :/
Browse files Browse the repository at this point in the history
  • Loading branch information
Cohuman Developer committed Aug 30, 2012
1 parent f94220d commit 98429cc
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/sequel/timezones.rb
Expand Up @@ -85,11 +85,7 @@ def convert_timestamp(v, input_timezone)
# +application_timezone+. Used when coverting datetime/timestamp columns
# returned by the database.
def database_to_application_timestamp(v)
if v.is_a? String && v.length >= 19
Time.utc(v[0,4], v[5,7], v[8,10], v[11,13], v[14,16], v[17,19])
else
convert_timestamp(v, Sequel.database_timezone)
end
convert_timestamp(v, Sequel.database_timezone)
end

# Sets the database, application, and typecasting timezones to the given timezone.
Expand Down

0 comments on commit 98429cc

Please sign in to comment.