Postponed
Project:
Taarikh
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Jan 2018 at 11:01 UTC
Updated:
2 Jan 2018 at 12:32 UTC
Jump to comment: Most recent
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
Comment #2
hussainwebI'm keeping this on a backburner for now. Things get very complicated if valueCallback doesn't return a string.