getTime now correctly returns null if no value selected. Fixes #177