geonames.rb
# Utility method for some queries that return times, we convert them to real
# Time instances with proper UTC timezone.
Utility method for some queries that return times, we convert them to real
Time instances with proper UTC timezone.
Utility method for some queries that return times we convert them to real Time instances with proper UTC timezone .
def fix_datetime(hash)
    if time = hash['datetime']
      zone, format = options.values_at(:timezone, :time_format)
      hash['datetime'] = Time.strptime("#{time} #{zone}", format)
    end
    hash
  end
def fix_datetime ( hash ) if time = hash [ 'datetime' ] zone , format = options . values_at ( :timezone , :time_format ) hash [ 'datetime' ] = Time . strptime ( "#{time} #{zone}" , format ) end hash end
Utility method for some queries that return times, we convert them to real
Time instances with proper UTC timezone.
Utility method for some queries that return times we convert them to real Time instances with proper UTC timezone .
hash
<not_specific>