datetime bug resolved