Fixed accidental global var in Q/timestamp tool