fix windows datetime issue