On Wednesday 12 December 2007 23:09, Nerijus Baliunas wrote:
> On Wed, 12 Dec 2007 04:20:13 +0200 Nerijus Baliunas 
<[EMAIL PROTECTED]> wrote:
> > Why timezone in Date header is +3 and not +2?
> >
> > If I comment out a line 220 in bsmtp.c:
> > offset += _dstbias;
> >
> > then I get a correct timezone:
> > Date: Wed, 12 Dec 2007 04:14:54 +0200 (FLE Standard Time)
> >
> > _dstbias is "Offset for daylight saving time". Any ideas why it is
> > not zero when daylight saving (summer time) is over?
>
> It is always non zero when "Automatically adjust clock for daylight
> saving changes" is checked. The following patch corrects situation:
>
> --- bsmtp.c   (revision 6040)
> +++ bsmtp.c   (working copy)
> @@ -217,7 +217,8 @@
>     long offset;
>     _tzset();
>     offset = _timezone;
> -   offset += _dstbias;
> +   if (tm.tm_isdst)
> +     offset += _dstbias;
>     return offset /= 60;
>  #else
>
> I tested this patch with both "Automatically adjust clock for daylight..."
> checked and unchecked, and when the date is summer and now. It
> works ok in all cases, please apply.

Done.

Thanks,

Kern

>
> Regards,
> Nerijus
>
> -------------------------------------------------------------------------
> SF.Net email is sponsored by:
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services
> for just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplac
>e _______________________________________________
> Bacula-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bacula-devel

-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to