Changeset 1625
- Timestamp:
- Aug 26, 2011, 11:36:20 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/archiver.tmp
r1510 r1625 64 64 ;98-02-31 23:55:32 yy-mm-dd hh:mm:ss 4 65 65 ;31-02-98 23:55 dd-mm-yy hh:mm 5 66 ;Aug 21 23:55 2011 mm-dd-yyyy hh:mm:ss 6 Fixes tar.gz date/time formatting when using tar 1..15+ 66 67 67 68 ; Dash (-) and slash (/) separators are both supported. … … 314 315 2 315 316 -1 316 3, 0317 3,6 317 318 4 318 319 7,1,0,0 -
trunk/dll/arccnrs.c
r1616 r1625 845 845 pai->cbComp = atol(nsize); 846 846 if (info->datetype && fdate && *fdate) 847 847 ArcDateTime(fdate, info->datetype, &pai->date, &pai->time); 848 848 memset(&ri, 0, sizeof(RECORDINSERT)); 849 849 ri.cb = sizeof(RECORDINSERT); … … 2316 2316 // Display parsed date/time columns if type specified 2317 2317 AdjustCnrColVis(hwnd, 2318 2319 2318 GetPString(IDS_TIMECOLTEXT), 2319 dcd->info->fdpos != -1 && dcd->info->datetype, FALSE); 2320 2320 AdjustCnrColVis(hwnd, 2321 2322 2321 GetPString(IDS_DATECOLTEXT), 2322 dcd->info->fdpos != -1 && dcd->info->datetype, FALSE); 2323 2323 WinSendMsg(hwnd, CM_INVALIDATEDETAILFIELDINFO, MPVOID, MPVOID); 2324 2324 } -
trunk/dll/avl.c
r1616 r1625 41 41 21 Nov 10 GKY Check if archiver.bb2 has been changed on disk before editing 42 42 13 Aug 11 GKY Change to Doxygen comment format 43 26 Aug 11 GKY Add the code to correctly format the date time strings for tar.gz archives 44 viewed using tar 1.15+ 43 45 44 46 ***********************************************************************/ … … 1126 1128 * 96-02-08 23:55:32 4 1127 1129 * 31-02-98 23:55 5 1130 * Aug 21 23:55 2011 6 Fixes tar.gz date/time formatting when using tar 1..15+ 1128 1131 */ 1129 1132 … … 1189 1192 } 1190 1193 if (x < 12) { 1191 cdate->month = x ;1194 cdate->month = x + 1; 1192 1195 p = strchr(p, ' '); 1193 1196 if (p) { … … 1230 1233 } 1231 1234 if (x < 12) { 1232 cdate->month = x ;1235 cdate->month = x + 1; 1233 1236 p = strchr(p, ' '); 1234 1237 if (p) { … … 1341 1344 } 1342 1345 } 1343 break; 1344 1346 break; 1347 case 6: 1348 for (x = 0; x < 12; x++) { 1349 if (!strnicmp(p, GetPString(IDS_JANUARY + x), 3)) 1350 break; 1351 } 1352 if (x < 12) { 1353 cdate->month = x + 1; 1354 p = strchr(p, ' '); 1355 if (p) { 1356 p++; 1357 cdate->day = atoi(p); 1358 p = strchr(p, ' '); 1359 if (p) { 1360 p++; 1361 ctime->hours = atoi(p); 1362 p = to_delim(pd, ":."); 1363 if (p) { 1364 p++; 1365 ctime->minutes = atoi(p); 1366 p = to_delim(pd, ":."); 1367 p = strchr(p, ' '); 1368 if (p) { 1369 p++; 1370 cdate->year = atoi(p); 1371 if (cdate->year > 80 && cdate->year < 1900) 1372 cdate->year += 1900; 1373 else if (cdate->year < 1900) 1374 cdate->year += 2000; 1375 ret = TRUE; 1376 } 1377 } 1378 } 1379 } 1380 } 1381 break; 1345 1382 default: 1346 1383 break;
Note:
See TracChangeset
for help on using the changeset viewer.