ObjFW  Diff

Differences From Artifact [d7cb394675]:

To Artifact [7b98bd3de0]:


285
286
287
288
289
290
291

292
293




294
295
296
297
298
299
300
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305







+


+
+
+
+








		tm.tm_isdst = -1;

		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;
	}

	return self;
}