formating the created at to show local time in correct format