April 03, 2018 PR: localtime vs. localtime_r | ||||
---|---|---|---|---|
| ||||
Hi, can somebody please review https://github.com/dlang/phobos/pull/6366 ? Phobos currently calls localtime() to handle timezones, which breaks insidiously in multithreaded programs and occasionally silently returns wrong times. localtime_r() support is not 100% universal, but localtime() is universally wrong. (Except under Windows, where it does the right thing and returns a threadlocal pointer. Go figure.) |
Copyright © 1999-2021 by the D Language Foundation