From 82db7ca90728c4fffaf7cee3b48cc334971ddcc3 Mon Sep 17 00:00:00 2001 From: Vincent Hardouin Date: Sat, 12 Oct 2024 17:57:28 +0200 Subject: [PATCH] fix: show time field --- src/infrastructure/adapters/PassAdapter.js | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/infrastructure/adapters/PassAdapter.js b/src/infrastructure/adapters/PassAdapter.js index 100af39..a5d20dc 100644 --- a/src/infrastructure/adapters/PassAdapter.js +++ b/src/infrastructure/adapters/PassAdapter.js @@ -46,30 +46,34 @@ class PassAdapter { ); this.pass.primaryFields.push( + { + key: 'court', + label: 'court', + textAlignment: 'PKTextAlignmentLeft', + value: court, + }, + ); + + this.pass.secondaryFields.push( { key: 'event_date', label: 'date', value: start, + ignoresTimeZone: false, dateStyle: 'PKDateStyleMedium', + textAlignment: 'PKTextAlignmentLeft', }, { key: 'event_time', label: 'time', textAlignment: 'PKTextAlignmentRight', timeStyle: 'PKDateStyleShort', + ignoresTimeZone: false, value: start, }, ); - this.pass.secondaryFields.push( - { - key: 'court', - label: 'court', - value: court, - }, - ); - - this.pass.auxiliaryFields.push({ + this.pass.backFields.push({ key: 'code', label: 'code', value: code,