gnuastro-devel
[Top][All Lists]
Advanced

[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 12:11:27 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0

Follow-up Comment #1, bug #58455 (project gnuastro):

I forgot to put the code piece of the original bug-report, I am putting it
here.


t = mktime(&tp);
/*
 * The function localtime() converts the time value pointed
 * by parameter, and returns pointer to a "struct tm" internal
 * static object which contains the information for the current
 * time zone and other factors such as Daylight Saving Time).
 */
t += localtime(&t)->tm_gmtoff;


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58455>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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