diff --git a/src/smblib/smblib.c b/src/smblib/smblib.c index bc3b68cda4824bf7f82841c697ef976269850a0f..bc81cebbe9b60c67a9bf9b7de3c684e59331535a 100644 --- a/src/smblib/smblib.c +++ b/src/smblib/smblib.c @@ -8,7 +8,7 @@ * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2005 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2006 Rob Swindell - http://www.synchro.net/copyright.html * * * * This library is free software; you can redistribute it and/or * * modify it under the terms of the GNU Lesser General Public License * @@ -1727,8 +1727,11 @@ int SMBCALL smb_tzutc(short zone) return(zone); tz=zone&0xfff; - if(zone&(WESTERN_ZONE|US_ZONE)) /* West of UTC? */ + if(zone&(WESTERN_ZONE|US_ZONE)) { /* West of UTC? */ + if(zone&DAYLIGHT) + tz-=60; return(-tz); + } return(tz); }