From 0475b77dccd6c6348b0c1b464db8e5ad11e07e9c Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Thu, 20 Dec 2018 10:07:52 +0100 Subject: [PATCH] MOBILE-2754 core: Fix 24 hour format used when it shouldn't --- src/providers/utils/time.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/providers/utils/time.ts b/src/providers/utils/time.ts index ddc13250c..abd522ce8 100644 --- a/src/providers/utils/time.ts +++ b/src/providers/utils/time.ts @@ -242,7 +242,7 @@ export class CoreTimeUtilsProvider { } if (fixHour) { - format = format.replace('%I', 'H'); + format = format.replace('%I', 'h'); } // Format could be in PHP format, convert it to moment.