We currently use `localtime_s` on Windows and `localtime_r` on other platforms for getting the local time. Check if we can do the same thing using one of boost libraries (possibly Boost.DateTime).