mktime() is supposed to use the local timezone, whereas the UTC equivalent is supposed to be gmtime(). However, since there is no TZ environment variable set up in the environment, mktime() winds up using UTC instead of the local time zone. This is the root cause of mgba-emu/mgba#2876, which I worked around in mgba-emu/mgba@e8ef801. A similar implementation may be plausible in newlib.
mktime() is supposed to use the local timezone, whereas the UTC equivalent is supposed to be gmtime(). However, since there is no TZ environment variable set up in the environment, mktime() winds up using UTC instead of the local time zone. This is the root cause of mgba-emu/mgba#2876, which I worked around in mgba-emu/mgba@e8ef801. A similar implementation may be plausible in newlib.