Fixed huge logical error where start / end clock was wrong due to used gmtime not localtime.