Fixing mistake sneaked in #3371

`__time_t` is not defined in MinGW. My spider sense should've tingle on double underscore prefix which usually means for internal purposes only.