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

sinasalek’s picture

Issue tags: +Roadmap

Marked

sinasalek’s picture

Title: Improving Calendar systems backend library » Improving backend library & introducing api
Issue tags: -Roadmap +6.x-2.x roadmap

Marked

sinasalek’s picture

Another 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

sinasalek’s picture

Moving to 3.x roadmap

sinasalek’s picture

Version: 6.x-2.x-dev » 7.x-1.x-dev
sinasalek’s picture

Issue tags: +Roadmap

Adding new tag

sinasalek’s picture

Status: Active » Postponed
sinasalek’s picture

Merging #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

sinasalek’s picture

Issue summary: View changes
sinasalek’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
sinasalek’s picture

Issue summary: View changes
sinasalek’s picture

Issue summary: View changes
sinasalek’s picture

Issue summary: View changes
sinasalek’s picture

Issue summary: View changes
sinasalek’s picture

Issue summary: View changes
sinasalek’s picture

Issue summary: View changes
sinasalek’s picture

Issue summary: View changes
sinasalek’s picture

Good news, the Drupal8 port will use a DateTime based multi calendar system using Carbon+Intl(ICU library)

sinasalek’s picture

Status: Postponed » Needs work
sinasalek’s picture

Issue summary: View changes
hkoosha’s picture

There 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 to false in calendar_systems.module

hkoosha’s picture

oops, this is the 7.x branch.

sinasalek’s picture

Version: 7.x-2.x-dev » 8.x-3.x-dev

Yes the translation can be problematic

hkoosha’s picture

Status: Needs work » Closed (outdated)

Moving on, let's focus on D9

hkoosha’s picture

Status: Closed (outdated) » Needs work

Undo. turns out there can't be a 9.x branch, yet.

hkoosha’s picture

Issue summary: View changes
hkoosha’s picture

Title: Improving backend library & introducing api » Calendar Systems Roadmap / Todo
hkoosha’s picture

Issue tags: -3.x roadmap