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

Location:
branches/client-1.5/src
Files:
8 edited

Legend:

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

    r474 r493  
    253253:li.Fix help files
    254254:eul.
     255:li.1.5.3
     256:ul.
     257:li.Fix timestamp problem
     258:eul.
    255259:eul.
    256260.******************************************************
  • branches/client-1.5/src/help/ndpsmb_de.ipf

    r474 r493  
    258258:li.Korrekturen in den Hilfedateien
    259259:eul.
     260:li.1.5.3
     261:ul.
     262:li.Zeitzonenproblem behoben
     263:eul.
    260264:eul.
    261265.******************************************************
  • branches/client-1.5/src/help/ndpsmb_fr.ipf

    r474 r493  
    343343:li.Corriger les fichier d'aide
    344344:eul.
     345:li.1.5.3
     346:ul.
     347:li.Fix timestamp problem
     348:eul.
    345349:eul.
    346350:p.
  • branches/client-1.5/src/help/readme.txt

    r474 r493  
    251251   - Fix help files
    252252
     253v1.5.3
     254   - Fix timestamp problem
     255
  • branches/client-1.5/src/help/readme_de.txt

    r474 r493  
    261261v1.5.2
    262262   - Korrekturen an den Hilfedateien
     263
     264v1.5.3
     265   - Zeitzonenproblem behoben
     266
  • branches/client-1.5/src/help/readme_fr.txt

    r474 r493  
    323323   - Corriger les fichiers d'aide
    324324
     325 v1.5.3
     326   - Fix timestamp problem
     327
     328
    325329Traduction fran‡aise : Guillaume Gay <guillaume.gay@bigfoot.com>
    326330Version : 2010-07-06
  • 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}
  • branches/client-1.5/src/smbwrp.c

    r442 r493  
    591591                time_t t;
    592592                file->mtime = time(NULL);
     593#if 0 //as time() delivers elapsed time in epoch we already have UTC
    593594                t = get_time_zone(file->mtime);
    594595                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);
    596599        }
    597600        file->offset = 0;
     
    728731        }
    729732
    730         debuglocal(4,"cli_setnewfileszie(%s) %lld\n", file->fname, newsize);
     733        debuglocal(4,"cli_setnewfilesize(%s) %lld\n", file->fname, newsize);
    731734        if (!cli_setfilenewsize(cli, file->fd, newsize))
    732735        {
Note: See TracChangeset for help on using the changeset viewer.