Parse time_value properly, fixes #11