@@ -287,12 +287,17 @@ if (of_strptime([string UTF8String], [format UTF8String], &tm) == NULL) @throw [OFInvalidFormatException exception]; +#ifndef OF_WINDOWS if ((_seconds = mktime(&tm)) == -1) @throw [OFInvalidFormatException exception]; +#else + if ((_seconds = _mktime64(&tm)) == -1) + @throw [OFInvalidFormatException exception]; +#endif } @catch (id e) { [self release]; @throw e; }