Re: mktime

2023-12-27 Thread Max Nikulin
On 23/12/2023 23:37, Max Nikulin wrote: However being aware of tm_gmtoff GNU extension, I was not expected the following: (info "(libc) Broken-down Time") https://www.gnu.org/software/libc/manual/html_node/Broken_002ddown-Time.html#index-mktime The ‘mktime’ function ignores the specified

Re: mktime (was: Re: systemd and timezone)

2023-12-23 Thread tomas
On Sat, Dec 23, 2023 at 01:09:02PM -0500, Jeffrey Walton wrote: [...] > On Sat, Dec 23, 2023 at 11:56 AM Max Nikulin wrote: > Here's what someone on the libc mailing list suggested: [...] > The person also suggested using Gnulib. My project was not using > Gnulib, so it was not an option. Tha

Re: mktime

2023-12-23 Thread Max Nikulin
On 24/12/2023 01:09, Jeffrey Walton wrote: On Sat, Dec 23, 2023 at 11:56 AM Max Nikulin wrote: (info "(libc) Broken-down Time") https://www.gnu.org/software/libc/manual/html_node/Broken_002ddown-Time.html#index-mktime The ‘mktime’ function ignores the specified contents of the ‘tm_

Re: mktime (was: Re: systemd and timezone)

2023-12-23 Thread Jeffrey Walton
On Sat, Dec 23, 2023 at 11:56 AM Max Nikulin wrote: > > On 23/12/2023 02:41, Jeffrey Walton wrote: > > I've found lack of per-thread timezones and libc's inability to > > convert time between timezones a bigger problem than other issues, > > like explicitly setting a timezone for a process. > > F