From 3bb77c6d0c6312a9ebf8b6a65c46ba4f09bd2cac Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 12 Mar 2018 18:08:46 -0700 Subject: [PATCH] Date handler am/pm code fix. --- e107_handlers/date_handler.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/e107_handlers/date_handler.php b/e107_handlers/date_handler.php index 633030f62..fbc73bf11 100644 --- a/e107_handlers/date_handler.php +++ b/e107_handlers/date_handler.php @@ -250,9 +250,9 @@ class convert '%H' => 'hh', // 24 hour format - leading zero '%M' => 'ii', // Two digit representation of the minute '%S' => 'ss', // Two digit representation of the second - '%P' => 'p', // %P lower-case 'am' or 'pm' based on the given time - '%p' => 'P', // %p UPPER-CASE 'AM' or 'PM' based on the given time - + '%P' => 'a', // lower-case 'am' or 'pm' based on the given time + '%p' => 'A', // UPPER-CASE 'AM' or 'PM' based on the given time + '%T' => 'hh:mm:ss', '%r' => "hh:mmm:ss TT" // 12 hour format ); @@ -276,6 +276,7 @@ class convert // Keep this info here: /* + * * $options allowed keys: *