Based on discussion in #2930120: Date conversion, we would handle the actual conversion of dates from one calendar system to another in the form element. To make things simple, we might consider adding a subclass of DrupalDateTime and override valueCallback and validateDatetime methods so that they use the new class rather than DrupalDateTime. Since it will be a child class, the respective methods in the form widgets would still work.

Comments

hussainweb created an issue. See original summary.

hussainweb’s picture

Status: Active » Postponed

I'm keeping this on a backburner for now. Things get very complicated if valueCallback doesn't return a string.