datetime conversion fix
closes #474
thanks Felix Gilcher