Use reentrant localtime if available