...stupid stupid me, the updated getdatefromline() was out of order