Before you write the report
Read the REPORTING_ISSUES.md file in the main repository and prepare data mentioned there which looks relevant to you issue.
Describe the bug
Kia ora team!
When I add a new printer via IPP into CUPS I am getting the error message:
Unable to add printer:
Printer returned invalid data: "printer-config-change-date-time": Bad dateTime UTC hours 13 (RFC 8011 section 5.1.15).
Our printer is set to New Zealand Daylight Time which is 13 hours ahead of UTC time. I found in the code that any UTC offset greater than 11 triggers this error message.
I will submit a pull request shortly with a suggested fix.
To Reproduce
Steps to reproduce the behavior:
- Prepare an IPP printer configured to a New Zealand timezone (either Daylight Time UTC+13 or Standard Time UTC+12 should trigger this issue).
- Click on 'Add Printer' under the CUPS Web UI Administration page
- Create the printer using its IP address and 'IPP Everywhere' driver
- At the point of contacting the printer and getting printer attributes, CUPS displays the "Unable to add printer" error.
Expected behavior
The printer is added successfully.
System Information:
- OS and its version: Ubuntu 24.04
- Printer: Canon imageRunner Advance C5850
- CUPS version: tested on 2.4.11
Additional Information:
My Wireshark capture is intermittently crashing my Wireshark, making this difficult, but in one capture it displayed the IPP printer-config-change-date-time data as:
printer-config-change-date-time (dateTime): 2025-03-14T15:23:42.0+1300
name: printer-config-change-date-time
dateTime value: 2025-03-14T15:23:42.0+1300
In Hex the dateTime value shows as: 07 e9 03 0e 0f 17 2a 00 2b 0d 00.
Before you write the report
Read the REPORTING_ISSUES.md file in the main repository and prepare data mentioned there which looks relevant to you issue.
Describe the bug
Kia ora team!
When I add a new printer via IPP into CUPS I am getting the error message:
Our printer is set to New Zealand Daylight Time which is 13 hours ahead of UTC time. I found in the code that any UTC offset greater than 11 triggers this error message.
I will submit a pull request shortly with a suggested fix.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The printer is added successfully.
System Information:
Additional Information:
My Wireshark capture is intermittently crashing my Wireshark, making this difficult, but in one capture it displayed the IPP
printer-config-change-date-timedata as:In Hex the dateTime value shows as:
07 e9 03 0e 0f 17 2a 00 2b 0d 00.