[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #58455] Timezone calculation is not portable and uses flag instead

From: Mohammad Akhlaghi
Subject: [bug #58455] Timezone calculation is not portable and uses flag instead of seconds
Date: Wed, 27 May 2020 17:24:44 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0

Update of bug #58455 (project gnuastro):

                  Status:               Confirmed => Fixed                  
             Open/Closed:                    Open => Closed                 


Follow-up Comment #2:

This bug has been implemented and pushed
<> to the
main repository.

Thanks again Alexey for reporting this bug. The problem was infact more
serious: the 'timezone' was not used for the current time, but for a different
time (in the headers of datasets, usually the time the datasets were

While I was looking into the fix, I noticed that by simply subtracting
'timezone', the result of the same command would be different in different
seasons (when daylight-saving was active, there would a one-hour difference!).
But I was impressed that 'mktime' actually calculates the timezone of the
local system at the time that 'tp' points to, thus correcting this error.

So I am closing this bug, but it would be great if you could give it a final
try on FreeBSD and see if there is no more building problem. You can get the
most recent tarball (that now has this bug fixed) from this URL:


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]