Closed (fixed)
Project:
Date
Version:
7.x-2.x-dev
Component:
Date API
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Mar 2022 at 08:15 UTC
Updated:
14 Apr 2022 at 18:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Natallia Kazarynava commentedComment #3
Natallia Kazarynava commentedI recreated the patch in order to remove unneeded changes which were made earlier in: https://www.drupal.org/project/date/issues/1741062 (first warning is fixed by patch from this issue)
Comment #4
damienmckennaComment #5
damienmckennaHaving dug through the module this makes complete sense, it's actually a bug that goes back to the Drupal 6 version!
This minor change extracts the integer value from the variable to avoid any possible errors from the variable not have an integer value.
Comment #6
joseph.olstadComment #7
steinmb commentedLooks right to me. RTBC.
Comment #8
steinmb commentedComment #10
damienmckennaCommitted. Thank you.
I'll commit it to 7.x-3.x separately.