fix saving datetime for new entries