Cannot assign dates earlier than the year 1900
Bug #797626 reported by
Olivier Tilloy
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyexiv2 |
Fix Released
|
Medium
|
Olivier Tilloy |
Bug Description
(originally spotted by Rob Healey, thanks Rob!)
Script to reproduce, with any image file:
import pyexiv2
from datetime import datetime
m = pyexiv2.
m.read()
m['Exif.
Expected result: assigning the datetime works.
Current result: fail with a ValueError: "ValueError: year=1899 is before 1900; the datetime strftime() methods require year >= 1900"
Changed in pyexiv2: | |
assignee: | nobody → Olivier Tilloy (osomon) |
status: | Confirmed → In Progress |
Changed in pyexiv2: | |
milestone: | none → 0.3.1 |
Changed in pyexiv2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Note that the first camera was created at the beginning of the 19th century, so pyexiv2 needs to be able to process dates < 1900.