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.
Display only the month and year as title and not the first day of the month
Solution:
Add one "_"(underscore) in /profiles/opigno_lms/modules/contrib/date/date_views/theme/theme.inc in line 168 and 169 for format_with_year and format_without_year.
The code is
"$format_with_year = variable_get('date_views_' . $granularity . '_format_with_year', 'l, F j, Y');
$format_without_year = variable_get('date_views_' . $granularity . '_format_without_year', 'l, F j');"
after that go to /admin/config/regional/date-time/date-views and click save, clear the catch.
Comments
Comment #1
axelm.
Comment #2
axelmComment #3
axelmComment #4
intu.cz CreditAttribution: intu.cz commentedI had this problem and I can confirm this solution works!
The only quirk was that the month was coming without the year, so I added a "Y" to format without year and everything is now as intended. (Is there a place where one changes format with year to format without year and viceversa?)
Thanks for the solution
Roman
PD: BTW this issue affects probably the Date Views submodule in general, not just in this Drupal distribution.
Comment #5
Jamesap CreditAttribution: Jamesap commentedDate patch
https://www.drupal.org/node/2294973
https://www.drupal.org/files/issues/title_date_formats-2294973-6.patch
Comment #6
axelm