Changeset 493 for branches/client-1.5
- Timestamp:
- Oct 27, 2010, 2:05:20 PM (15 years ago)
- Location:
- branches/client-1.5/src
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/client-1.5/src/help/ndpsmb.ipf
r474 r493 253 253 :li.Fix help files 254 254 :eul. 255 :li.1.5.3 256 :ul. 257 :li.Fix timestamp problem 258 :eul. 255 259 :eul. 256 260 .****************************************************** -
branches/client-1.5/src/help/ndpsmb_de.ipf
r474 r493 258 258 :li.Korrekturen in den Hilfedateien 259 259 :eul. 260 :li.1.5.3 261 :ul. 262 :li.Zeitzonenproblem behoben 263 :eul. 260 264 :eul. 261 265 .****************************************************** -
branches/client-1.5/src/help/ndpsmb_fr.ipf
r474 r493 343 343 :li.Corriger les fichier d'aide 344 344 :eul. 345 :li.1.5.3 346 :ul. 347 :li.Fix timestamp problem 348 :eul. 345 349 :eul. 346 350 :p. -
branches/client-1.5/src/help/readme.txt
r474 r493 251 251 - Fix help files 252 252 253 v1.5.3 254 - Fix timestamp problem 255 -
branches/client-1.5/src/help/readme_de.txt
r474 r493 261 261 v1.5.2 262 262 - Korrekturen an den Hilfedateien 263 264 v1.5.3 265 - Zeitzonenproblem behoben 266 -
branches/client-1.5/src/help/readme_fr.txt
r474 r493 323 323 - Corriger les fichiers d'aide 324 324 325 v1.5.3 326 - Fix timestamp problem 327 328 325 329 Traduction franaise : Guillaume Gay <guillaume.gay@bigfoot.com> 326 330 Version : 2010-07-06 -
branches/client-1.5/src/ndpsmb.c
r398 r493 52 52 { 53 53 struct tm* gmt = localtime( &time); 54 #if 0 // as localtime() already does dst we don't need to add something 54 55 if (gmt->tm_isdst>0) { 55 56 debug_printf( "daylight saving in effect %d, timezone %d\n",gmt->tm_isdst, timezone); … … 57 58 gmt = localtime( &time); 58 59 } 60 #endif 59 61 fdate->day = gmt->tm_mday; 60 62 fdate->month = gmt->tm_mon+1; … … 63 65 ftime->minutes = gmt->tm_min; 64 66 ftime->hours = gmt->tm_hour; 67 debug_printf("fsphUnixDateToDosDate\n"); 65 68 } 66 69 … … 68 71 { 69 72 struct tm gmtime = { 0 }; 70 struct tm* gmt;71 73 72 74 debug_printf( "fsphDosDateToUnixTime time %02d:%02d\n", ftime.hours, ftime.minutes); … … 81 83 *time = mktime( &gmtime); 82 84 debug_printf( "fsphDosDateToUnixTime time1 %d %s", *time, ctime( (time_t*)time)); 85 #if 0 // as mktime() already does dst we don't need to add something 86 struct tm* gmt; 83 87 gmt = localtime( (time_t*) time); 84 88 if (gmt->tm_isdst>0) { … … 86 90 *time += 3600; 87 91 } 92 #endif 88 93 debug_printf( "fsphDosDateToUnixTime time2 %d %s", *time, ctime( (time_t*)time)); 89 94 } -
branches/client-1.5/src/smbwrp.c
r442 r493 591 591 time_t t; 592 592 file->mtime = time(NULL); 593 #if 0 //as time() delivers elapsed time in epoch we already have UTC 593 594 t = get_time_zone(file->mtime); 594 595 debuglocal(4,"cli_open mtime %lu %lu\n", file->mtime, t); 595 file->mtime -= t; 596 file->mtime += t; 597 #endif 598 debuglocal(4,"cli_open new mtime %lu\n", file->mtime); 596 599 } 597 600 file->offset = 0; … … 728 731 } 729 732 730 debuglocal(4,"cli_setnewfiles zie(%s) %lld\n", file->fname, newsize);733 debuglocal(4,"cli_setnewfilesize(%s) %lld\n", file->fname, newsize); 731 734 if (!cli_setfilenewsize(cli, file->fd, newsize)) 732 735 {
Note:
See TracChangeset
for help on using the changeset viewer.