fixed loging date issue