--- np2/macosx/dosio.cpp 2004/01/23 17:37:39 1.3 +++ np2/macosx/dosio.cpp 2004/01/31 19:45:25 1.4 @@ -170,27 +170,13 @@ short file_getdatetime(FILEH handle, DOS FSRef ref; FSCatalogInfo fsci; - LocalDateTime ldt; - DateTimeRec dtr; - ZeroMemory(&dtr, sizeof(dtr)); if ((FSGetForkCBInfo(handle, 0, NULL, NULL, NULL, &ref, NULL) != noErr) || (FSGetCatalogInfo(&ref, kFSCatInfoContentMod, &fsci, NULL, NULL, NULL) != noErr)) { return(-1); } - ConvertUTCToLocalDateTime(&fsci.contentModDate, &ldt); - SecondsToDate(ldt.lowSeconds, &dtr); - if (dosdate) { - dosdate->year = dtr.year; - dosdate->month = (BYTE)dtr.month; - dosdate->day = (BYTE)dtr.day; - } - if (dostime) { - dostime->hour = (BYTE)dtr.hour; - dostime->minute = (BYTE)dtr.minute; - dostime->second = (BYTE)dtr.second; - } + cnvdatetime(&fsci.contentModDate, dosdate, dostime); return(0); #else (void)handle;