MOBILE-4131 time: Return ISO string in toDatetimeFormat function

main
Alfonso Salces 2022-09-28 11:23:56 +02:00
parent 57f10bff4a
commit 983ba9466a
1 changed files with 1 additions and 3 deletions

View File

@ -255,9 +255,7 @@ export class CoreTimeUtilsProvider {
* @return Formatted time. * @return Formatted time.
*/ */
toDatetimeFormat(timestamp?: number): string { toDatetimeFormat(timestamp?: number): string {
timestamp = timestamp || Date.now(); return moment(timestamp || Date.now()).toISOString();
return this.userDate(timestamp, 'YYYY-MM-DDTHH:mm:ss.SSS', false) + 'Z';
} }
/** /**