Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tests/test_imagecms.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ def truncate_tuple(tuple_value: tuple[Any, ...]) -> tuple[Any, ...]:
assert p.colorimetric_intent is None
assert p.connection_space == "XYZ "
assert p.copyright == "Copyright International Color Consortium, 2009"
assert p.creation_date == datetime.datetime(2009, 2, 27, 21, 36, 31)
assert p.creation_date == datetime.datetime(2009, 3, 27, 21, 36, 31)
assert p.device_class == "mntr"
assert_truncated_tuple_equal(
p.green_colorant,
Expand Down
8 changes: 7 additions & 1 deletion src/_imagingcms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1034,7 +1034,13 @@ cms_profile_getattr_creation_date(CmsProfileObject *self, void *closure) {
}

return PyDateTime_FromDateAndTime(
1900 + ct.tm_year, ct.tm_mon, ct.tm_mday, ct.tm_hour, ct.tm_min, ct.tm_sec, 0
1900 + ct.tm_year,
ct.tm_mon + 1,
ct.tm_mday,
ct.tm_hour,
ct.tm_min,
ct.tm_sec,
0
);
}

Expand Down
Loading