Closed GoogleCodeExporter closed 8 years ago
I think I might have been wrong about it working in a previous version.
Unfortunately I can't test it
Original comment by fraseco
on 19 Oct 2011 at 3:36
I suggest the following change to ExifBitConverter.ToDateTime. After the line:
string[] parts = str.Split(new char[] { ':', ' ' });
insert:
if (int.Parse(parts[0]) + int.Parse(parts[1]) + int.Parse(parts[2]) == 0)
//A date with each part set to zero is used on at least one camera to indicate an unknown date.
//DateTime has no such concept, and its earliest possible date is 0001/01/01.
//So we set the date to that value rather than let DateTime throw an exception
{
parts[0] = "1"; parts[1] = "1"; parts[2] = "1";
}
Original comment by fraseco
on 24 Oct 2011 at 4:08
This issue was closed by revision r92.
Original comment by oozcitak
on 9 Mar 2012 at 4:24
Original issue reported on code.google.com by
fraseco
on 19 Oct 2011 at 3:12