Try to cope with random crashes due to strptime not being thread safe