fixed bug related to date management in create_post