On Tue, 11 Dec 2007 21:33:05 -0500 Dan Langille <[EMAIL PROTECTED]> wrote:
> > _dstbias is "Offset for daylight saving time". Any ideas why it is
> > not zero when daylight saving (summer time) is over?
> > Is it a mingw or Windows problem?
>
> Not that I've viewed the code, but where is _dstbias obtained from?
>From win32 AFAIU.
> It's not static it is? i.e. obtained when the daemon started, and
> therefore now outdated?
It's external:
static long tz_offset(time_t lnow, struct tm &tm)
{
#if defined(HAVE_WIN32)
#if defined(HAVE_MINGW)
__MINGW_IMPORT long _dstbias;
#endif
/* Win32 code */
long offset;
_tzset();
offset = _timezone;
// offset += _dstbias;
return offset /= 60;
#else
/* Unix/Linux code */
struct tm tm_utc;
time_t now = lnow;
(void)gmtime_r(&now, &tm_utc);
tm_utc.tm_isdst = tm.tm_isdst;
return (long)difftime(mktime(&tm_utc), now) / 60;
#endif
}
There are no more "_dstbias" in the code.
-------------------------------------------------------------------------
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://sourceforge.net/services/buy/index.php
_______________________________________________
Bacula-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bacula-devel