fixed bug during time copy when custom format used (closes #31)