fixing localdates