method
string_to_dummy_time
string_to_dummy_time(string)
public
Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 116 def self.string_to_dummy_time(string) return string unless string.is_a?(String) time_array = ParseDate.parsedate(string) # pad the resulting array with dummy date information time_array[0] = 2000; time_array[1] = 1; time_array[2] = 1; Time.send(Base.default_timezone, *time_array) rescue nil end