Refine fetching and time parsing algorithm