[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Octave date and time services
From: |
Mike Miller |
Subject: |
Re: Octave date and time services |
Date: |
Mon, 14 May 2018 12:20:01 -0700 |
User-agent: |
Mutt/1.9.5 (2018-04-13) |
On Mon, May 14, 2018 at 11:53:57 -0700, Mike Miller wrote:
> It appears that the localtime function on GNU/Linux operating systems
> automatically calls tzset to update the internal time zone information
> from the TZ environment variable. On Windows, it seems to be that the
> localtime function does not, but the mktime function does. That's what I
> meant by defect in your operating system.
Actually, this is because Octave uses the Gnulib mktime replacement
function in the Windows build, which does explicitly call tzset.
> I think this would be appropriate to fix in Octave, by explicitly
> calling tzset wherever it may be needed.
Please do file a bug report that all low-level time functions dealing
with local time should ensure that tzset is called.
--
mike
signature.asc
Description: PGP signature