ytgov / yukon-ca

New version of Yukon.ca, built on Drupal 10
1 stars 1 forks source link

Task #64840: Consistent date formatting #510

Open ew-fedir opened 5 days ago

ew-fedir commented 5 days ago

General description:

  1. Task #465.
  2. All date-formats were updated according to Date and time from the style guide. Only HTML * were skipped.
  3. After update the following formats are used on site
machine name Old name New name Example EN Example FR
long_format Long Long Tuesday, July 2, 2024 mardi 2 juillet 2024
long Default long date Long with Time Tuesday, July 2, 2024 - 3:15 pm mardi 2 juillet 2024 - 15 h 15
medium_format Medium *new Medium July 2, 2024 2 juillet 2024
medium Default medium date Medium with Time July 2, 2024 - 3:15 pm 2 juillet 2024 - 15 h 15
short_format Short *new Short 2024-02-07 2024-02-07
short Default short date Short with Time 2024-02-07 - 3:15 pm 2024-02-07 - 15 h 15
time_am_pm Time am/pm Time am/pm 3:15 pm 15 h 15
fallback Fallback date format Fallback date format Tuesday July 2 2024 - 3:15 pm mardi 2 juillet 2024 - 15 h 15
  1. The following date-format transition were performed:

    • long_format -> medium_format
    • yg_long -> medium_format
    • long_with_time -> medium
  2. Removed date-formats

    • Long with Time (long_with_time)
    • Long (yg_long)