Optionally remove zero minutes and/or seconds from output

Created on 10 February 2023, about 2 years ago
Updated 15 April 2024, 12 months ago

Motivation

To compact the output even further, there could be an boolean configuration setting for each compact date range format to optionally remove instances of ':00' from the final string, so that times like '7:00:00pm' or '7:00pm' become simply '7pm'.

Proposed resolution

A new checkbox field in the configuration of each compact date range format to turn this functionality on or off, defaulting to off.

I've attached a patch that works for me. If the module maintainer is happy, I can commit the changes to the module dev branch?

✨ Feature request
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom natts London

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @natts
  • Status changed to Fixed about 1 year ago
  • πŸ‡ΈπŸ‡ͺSweden erik.erskine

    Fixed in 2.1.0.

    Thanks for your contribution. This feature has now been added to the latest release, though with a slightly different patch. If you are using this patch you will need to remove it and then reconfigure the compact date format entities.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024