Error en la Consulta SQL SELECT to_timestamp(fechahora , 'yymmddhh24miss')::text::timestamp as fef ,
substring(fechahora from 5 for 2)::text::int as diaf,
substring(fechahora from 3 for 2)::text::int as mesf,
EXTRACT(year FROM to_timestamp(fechahora , 'yymmddhh24miss')::text::timestamp) as anof
FROM parametros_guayaquil where indice_uv<>0 ORDER BY to_timestamp(fechahora , 'yymmddhh24miss')::text::timestamp ASC LIMIT 1