ACR Rules

  1. Home
  2. Docs
  3. ACR Rules
  4. Reliability (41)
  5. AM/PM indicator should only be used in combination with lowercase “h”

AM/PM indicator should only be used in combination with lowercase “h”

Released in version 1.5 (14 February 2020)

‘This is very likely a bug and should be changed.
Lowercase “a” is used to denote AM or PM. This only makes sense in combination with lowercase “h” which is in the range 1-12. Using “a” in combination with the uppercase “H” makes little sense.’

Non-compliant example:

formatDateTime($DateTime, 'H:mm a')

Compliant example:

formatDateTime($DateTime, 'h:mm a') or
formatDateTime($DateTime, 'HH:mm')