On 10/22/2016 02:32, Paul Eggert wrote:
Thanks, how about the attached patch instead? It lets you specify an arbitrary gmtime offset instead of hardwiring it for the Amiga. You should be able to build it on the Amiga with something like "make CFLAGS='-DEPOCH_LOCAL -DEPOCH_OFFSET=252460800'".
There are several implementations of the Standard C library time() function for AmigaOS and none of them are consistent. To utilize this patch a direct call to the well documented and consistent AmigaOS function GetSysTime() would be required. This should be done in the LOCALTIME_IMPLEMENTATION define in private.h. # ifdef LOCALTIME_IMPLEMENTATION static time_t sys_time(time_t *x) { return time(x); } # endif I don’t know how to supply this information in a correct manner but it should probably be incorporated in the Makefile. Otherwise, the patch looks correct. I will need to do more testing on affected platforms. Kind regards Carsten Larsen