Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Core doesn't provide us with something to replace the date_week() function with.
Proposed resolution
Move it to CalendarHelper, fix the casing of the function name, fix the docblock.
Remaining tasks
Do it.
User interface changes
None.
Comment | File | Size | Author |
---|---|---|---|
#4 | date-week-2600454-4.patch | 5.52 KB | sdstyles |
#2 | date-week-2600454-2.patch | 5.32 KB | sdstyles |
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous at XIO commentedpjonckiere created an issue. See original summary.
Comment #2
sdstyles CreditAttribution: sdstyles at FFW commentedComment #3
geertvd CreditAttribution: geertvd at XIO commentedLooks good. Some small points though:
let's make that public static
The
DateTime
andDateTimeZone
classes are not available in this namespace, let's use\DateTime
and\DateTimeZone
.Comment #4
sdstyles CreditAttribution: sdstyles at FFW commentedFixed, thanks.
Comment #6
geertvd CreditAttribution: geertvd at XIO commentedLooks great, thanks!