Cast Fix

Casting byte variables to integer in the DateTime break up function.
Position is now stored correctly into the logfile.