Merge pull request #12587 from AdmiralCurtiss/localtime Core: Fix crash when inspecting a savestate with a timestamp that causes localtime() to error out