fix time parsing to pass unit test