from man mktime: "If structure members are outside their legal interval, they will be normalized (so that, e.g., 40 October is changed into 9 November)." mktime fails to normalize the tm_sec member. It clamps its value to [0..59] instead. This causes problems in all programs that rely on that functionality, for instance to convert time between local time and UTC. KOrganizer is one such program. Reproducible: Always Steps to Reproduce: 1. Emerge glibc-2.3.4.20041102-r1 2. Run the attached test program Actual Results: tut: 1104534060, stm: 2005-01-01 00:00:59 0001 Expected Results: tut: 1104534060, stm: 2005-01-01 00:01:00 0001
Created attachment 60906 [details] Test program
Created attachment 60907 [details, diff] Proposed patch - From the glibc CVS repository
this is in glibc-2.3.5, thanks