The `timestring.Date` function is currently called in four places: https://github.com/HEPData/hepdata/blob/896e7f66c6fdfee06912e3ce1bc0eddf4ce6baea/hepdata/modules/inspire_api/marcxml_parser.py#L67 https://github.com/HEPData/hepdata/blob/896e7f66c6fdfee06912e3ce1bc0eddf4ce6baea/hepdata/modules/inspire_api/marcxml_parser.py#L180 https://github.com/HEPData/hepdata/blob/896e7f66c6fdfee06912e3ce1bc0eddf4ce6baea/hepdata/modules/converter/views.py#L281 https://github.com/HEPData/hepdata/blob/896e7f66c6fdfee06912e3ce1bc0eddf4ce6baea/hepdata/modules/converter/views.py#L514 There is a bug when `timestring.Date` is called on 29th February and the year passed is not a leap year: ```python >>> import timestring >>> timestring.Date("2001-07-01") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/graemewatt/.virtualenvs/hepdata/lib/python2.7/site-packages/timestring/Date.py", line 150, in __init__ new_date = new_date.replace(year=year) ValueError: day is out of range for month ``` This bug should be worked around or the dependence on `timestring.Date` removed. See also codecov/timestring#38, codecov/timestring#39, codecov/timestring#62, codecov/timestring#63.
Activity