The 'struct tm' is now properly updated to reflect the time and date information which comes out of the number of seconds calculated.
A bug reported by Andreas Falkenhahn is resolved which had the effect of distorting the number of seconds calculated.