Missing dot in short date at calendar_date_format_sets
Open, Needs TriagePublic

Description

As of writing, plugins/libcalendaring/libcalendaring.php of Winterfell contains the following calendar_date_format_sets by default:

'calendar_date_format_sets' => array(
  'yyyy-MM-dd' => array('MMM d yyyy',   'M-d',  'ddd MM-dd'),
  'dd-MM-yyyy' => array('d MMM yyyy',   'd-M',  'ddd dd-MM'),
  'yyyy/MM/dd' => array('MMM d yyyy',   'M/d',  'ddd MM/dd'),
  'MM/dd/yyyy' => array('MMM d yyyy',   'M/d',  'ddd MM/dd'),
  'dd/MM/yyyy' => array('d MMM yyyy',   'd/M',  'ddd dd/MM'),
  'dd.MM.yyyy' => array('dd. MMM yyyy', 'd.M',  'ddd dd.MM.'),
  'd.M.yyyy'   => array('d. MMM yyyy',  'd.M',  'ddd d.MM.'),
),

However, "d.M" leads to "14.8" while it should be "14.8." because it's the 14. day of the 8. month (in German-speaking countries for example, where the "dot" as date separator is even standardized, you speak like this, e.g. "Vierzehnter Achter"). Thus I suggest the following minor change:

'dd.MM.yyyy' => array('dd. MMM yyyy', 'd.M.', 'ddd dd.MM.'),
'd.M.yyyy'   => array('d. MMM yyyy',  'd.M.', 'ddd d.MM.'),

Details

Ticket Type
Task
rsc created this task.Aug 14 2018, 12:43 AM
rsc added a project: Roundcube Kolab Plugins .
rsc updated the task description. (Show Details)Aug 14 2018, 12:46 AM
vanmeeuwen closed this task as Resolved.
vanmeeuwen moved this task from Backlog to Done on the Roundcube Kolab Plugins board.
vanmeeuwen added a subscriber: vanmeeuwen.

I'm not understanding what the difference is between;

'dd.MM.yyyy' => array('dd. MMM yyyy', 'd.M',  'ddd dd.MM.'),
'd.M.yyyy'   => array('d. MMM yyyy',  'd.M',  'ddd d.MM.'),

and

'dd.MM.yyyy' => array('dd. MMM yyyy', 'd.M.', 'ddd dd.MM.'),
'd.M.yyyy'   => array('d. MMM yyyy',  'd.M.', 'ddd d.MM.'),

Please clarify and elaborate, and reopen if necessary.

rsc reopened this task as Open.Aug 22 2018, 8:51 PM

There is "'d.M'," vs. "'d.M.'" (note the second dot).