SkICC: Write valid date in ICC header
Per ICC.1:2022 "7.2.8 Date and time field", the date and time field
in the header has type dateTimeNumber, and per "4.2 dateTimeNumber"
a dateTimeNumber's month must be between 1 and 12 and a day must
be between 1 and 31.
While here, also set the year to 2016 to match the copyright string
instead of setting it to 0.
Note that https://color.org/security/android_bug.xalter explicitly
calls out a zero date/time as invalid.
Bug: None
Change-Id: I7be6551d630a658c17fad042066853aa880d9055
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/640438
Auto-Submit: Nico Weber <thakis@chromium.org>
Commit-Queue: Brian Osman <brianosman@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
1 file changed