Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

put optimization in the wrong spot :/

  • Loading branch information...
commit e0ea567116c86d578c28cb36e95ea27e9ea9a782 1 parent dff190d
@cohuman authored
Showing with 1 addition and 5 deletions.
  1. +1 −5 lib/sequel/timezones.rb
View
6 lib/sequel/timezones.rb
@@ -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.
Please sign in to comment.
Something went wrong with that request. Please try again.