rt: fix rust_localtime on Windows. (#9418)