diff --git a/src/addon/mod/data/fields/date/component/addon-mod-data-field-date.html b/src/addon/mod/data/fields/date/component/addon-mod-data-field-date.html index 674dfb0df..2f865e866 100644 --- a/src/addon/mod/data/fields/date/component/addon-mod-data-field-date.html +++ b/src/addon/mod/data/fields/date/component/addon-mod-data-field-date.html @@ -10,5 +10,5 @@ - + diff --git a/src/core/user/components/participants/core-user-participants.html b/src/core/user/components/participants/core-user-participants.html index 682ac0c5f..d1faf712d 100644 --- a/src/core/user/components/participants/core-user-participants.html +++ b/src/core/user/components/participants/core-user-participants.html @@ -11,7 +11,7 @@

-

{{ 'core.lastaccess' | translate }}: {{ participant.lastaccess * 1000 | coreFormatDate }}

+

{{ 'core.lastaccess' | translate }}: {{ participant.lastaccess | coreTimeAgo }}

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.