Skip to content
Snippets Groups Projects
Commit c2a9b290 authored by rswindell's avatar rswindell
Browse files

Bug-fix in smb_tzutc() - subtract 60 minutes from US timezones with DST in

effect.
parent 54517403
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment