Ignore:
Timestamp:
Oct 27, 2010, 2:05:20 PM (15 years ago)
Author:
Silvan Scherrer
Message:

sambaclient 1.5: attemp to fix tz problems fixes ticket:56

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/client-1.5/src/ndpsmb.c

    r398 r493  
    5252{
    5353    struct tm* gmt = localtime( &time);
     54#if 0 // as localtime() already does dst we don't need to add something
    5455    if (gmt->tm_isdst>0) {
    5556        debug_printf( "daylight saving in effect %d, timezone %d\n",gmt->tm_isdst, timezone);
     
    5758        gmt = localtime( &time);
    5859    }
     60#endif
    5961    fdate->day  = gmt->tm_mday;
    6062    fdate->month  = gmt->tm_mon+1;
     
    6365    ftime->minutes = gmt->tm_min;
    6466    ftime->hours = gmt->tm_hour;
     67    debug_printf("fsphUnixDateToDosDate\n");
    6568}
    6669
     
    6871{
    6972    struct tm gmtime = { 0 };
    70     struct tm* gmt;
    7173
    7274    debug_printf( "fsphDosDateToUnixTime time %02d:%02d\n", ftime.hours, ftime.minutes);
     
    8183    *time = mktime( &gmtime);
    8284    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;
    8387    gmt = localtime( (time_t*) time);
    8488    if (gmt->tm_isdst>0) {
     
    8690        *time += 3600;
    8791    }
     92#endif
    8893    debug_printf( "fsphDosDateToUnixTime time2 %d %s", *time, ctime( (time_t*)time));
    8994}
Note: See TracChangeset for help on using the changeset viewer.