fixed the edit function for today

but still not working for all post