Changeset 494


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

sambaclient 1.6: attemp to fix tz problems closes ticket:56

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

Legend:

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

    r476 r494  
    267267:li.fixed some traps from alpha1
    268268:eul.
     269:li.beta2
     270:ul.
     271:li.fixed a timezone problem
     272:eul.
    269273:eul.
    270274:p.
  • branches/client-1.6/src/help/ndpsmb_de.ipf

    r476 r494  
    272272:li.einige Abst&ue.rze von alpha1 repariert
    273273:eul.
     274:li.beta2
     275:ul.
     276:li.ein Zeitzonenproblem behoben
     277:eul.
    274278:eul.
    275279:p.
  • branches/client-1.6/src/help/ndpsmb_fr.ipf

    r476 r494  
    357357:li.fixed some traps from alpha1
    358358:eul.
     359:li.beta2
     360:ul.
     361:li.fixed a timezone problem
     362:eul.
    359363:eul.
    360364:p.
  • branches/client-1.6/src/help/readme.txt

    r476 r494  
    257257   - first public build
    258258   - fixed some traps from alpha1
     259
     260 v1.6.0 beta2:
     261   - fixed a timezone problem
  • branches/client-1.6/src/help/readme_de.txt

    r476 r494  
    268268   - erster ”ffentlicher build
    269269   - einige Abstrze von alpha1 repariert
     270
     271 v1.6.0 beta2:
     272   - ein Zeitzonenproblem behoben
  • branches/client-1.6/src/help/readme_fr.txt

    r476 r494  
    330330   - fixed some traps from alpha1
    331331
     332 v1.6.0 beta2:
     333   - fixed a timezone problem
     334
    332335Traduction fran‡aise : Guillaume Gay <guillaume.gay@bigfoot.com>
    333336Version : 2010-07-06
  • branches/client-1.6/src/ndpsmb.c

    r472 r494  
    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;
     
    6870{
    6971    struct tm gmtime = { 0 };
    70     struct tm* gmt;
    7172
    7273    debug_printf( "fsphDosDateToUnixTime time %02d:%02d\n", ftime.hours, ftime.minutes);
     
    8182    *time = mktime( &gmtime);
    8283    debug_printf( "fsphDosDateToUnixTime time1 %d %s", *time, ctime( (time_t*)time));
     84#if 0 // as mktime() already does dst we don't need to add something
     85    struct tm* gmt;
    8386    gmt = localtime( (time_t*) time);
    8487    if (gmt->tm_isdst>0) {
     
    8689        *time += 3600;
    8790    }
     91#endif
    8892    debug_printf( "fsphDosDateToUnixTime time2 %d %s", *time, ctime( (time_t*)time));
    8993}
  • branches/client-1.6/src/smbwrp.c

    r472 r494  
    614614                time_t t;
    615615                file->mtime = time(NULL);
     616#if 0 // as time() delivers elapsed time in epoch we already have UTC
    616617                t = get_time_zone(file->mtime);
    617618                debuglocal(4,"cli_open mtime %lu %lu\n", file->mtime, t);
    618619                file->mtime -= t;
     620#endif
     621                debuglocal(4,"cli_open new mtime %lu\n", file->mtime);
    619622        }
    620623        file->offset = 0;
     
    755758        }
    756759
    757         debuglocal(4,"cli_setnewfileszie(%s) %lld\n", file->fname, newsize);
     760        debuglocal(4,"cli_setnewfilesize(%s) %lld\n", file->fname, newsize);
    758761        if (!cli_setfilenewsize(cli, file->fd, newsize))
    759762        {
Note: See TracChangeset for help on using the changeset viewer.