Changeset 493 for branches/client-1.5/src/ndpsmb.c
- Timestamp:
- Oct 27, 2010, 2:05:20 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.