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.
Calendar Systems 7.x uses a home grown library, php 5 and 7 compatible.
Calendar Systems 8.x also uses a home grown library, only php 7 compatible.
Goals:
Find a third-party standalone PHP library, Calendar System will only do the integration part with Drupal.
No Goals:
?
Roadmap / To Do
- Use Carbon 2
- PHP-Intl Polyfill
- Open an issue for core, request more context on date formatting. Currently support for date formatting in metadata and rss which need dates in Gregorian, sucks and it is guesswork.
[#1834108]
Comments
Comment #1
sinasalek CreditAttribution: sinasalek commentedMarked
Comment #2
sinasalek CreditAttribution: sinasalek commentedMarked
Comment #3
sinasalek CreditAttribution: sinasalek commentedAnother better idea is introducing some hooks to let third party module take care of implementing different calendar systems
CTools plugin system seems to be more appropriate than hook http://ygerasimov.com/ctools-plugins-system
Comment #4
sinasalek CreditAttribution: sinasalek commentedMoving to 3.x roadmap
Comment #5
sinasalek CreditAttribution: sinasalek commentedComment #6
sinasalek CreditAttribution: sinasalek commentedAdding new tag
Comment #7
sinasalek CreditAttribution: sinasalek commentedComment #8
sinasalek CreditAttribution: sinasalek commentedMerging #838676: Integration Date Module API & Calendar Systems with this issue, the decision has be made to either make date modules' backend date class into a multicalendar backend or develop a new class and plugin system for calendar systems
Comment #9
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedComment #10
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedComment #11
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedComment #12
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedComment #13
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedComment #14
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedComment #15
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedComment #16
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedComment #17
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedComment #18
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedGood news, the Drupal8 port will use a DateTime based multi calendar system using Carbon+Intl(ICU library)
Comment #19
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedComment #20
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedComment #21
hkoosha CreditAttribution: hkoosha as a volunteer and at milaniz commentedThere were some issues with intl, I can exactly remember. But I think it was about reading the dates back in widgets and elements. Intl translates everything but can't parse translated date strings.
Drupal itself uses some crazy regex to extract month/day names, translate them and put the date parts back together.
So for now we have
CALENDAR_SYSTEMS_USE_INTL
set tofalse
incalendar_systems.module
Comment #22
hkoosha CreditAttribution: hkoosha as a volunteer and at milaniz commentedoops, this is the 7.x branch.
Comment #23
sinasalek CreditAttribution: sinasalek as a volunteer and at Practicalidea commentedYes the translation can be problematic
Comment #24
hkoosha CreditAttribution: hkoosha as a volunteer and commentedMoving on, let's focus on D9
Comment #25
hkoosha CreditAttribution: hkoosha as a volunteer and commentedUndo. turns out there can't be a 9.x branch, yet.
Comment #26
hkoosha CreditAttribution: hkoosha as a volunteer and commentedComment #27
hkoosha CreditAttribution: hkoosha as a volunteer and commentedComment #28
hkoosha CreditAttribution: hkoosha as a volunteer and commented