Skip to content

Commit 82db7ca

Browse files
fix: show time field
1 parent 271fe39 commit 82db7ca

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

src/infrastructure/adapters/PassAdapter.js

+13-9
Original file line numberDiff line numberDiff line change
@@ -46,30 +46,34 @@ class PassAdapter {
4646
);
4747

4848
this.pass.primaryFields.push(
49+
{
50+
key: 'court',
51+
label: 'court',
52+
textAlignment: 'PKTextAlignmentLeft',
53+
value: court,
54+
},
55+
);
56+
57+
this.pass.secondaryFields.push(
4958
{
5059
key: 'event_date',
5160
label: 'date',
5261
value: start,
62+
ignoresTimeZone: false,
5363
dateStyle: 'PKDateStyleMedium',
64+
textAlignment: 'PKTextAlignmentLeft',
5465
},
5566
{
5667
key: 'event_time',
5768
label: 'time',
5869
textAlignment: 'PKTextAlignmentRight',
5970
timeStyle: 'PKDateStyleShort',
71+
ignoresTimeZone: false,
6072
value: start,
6173
},
6274
);
6375

64-
this.pass.secondaryFields.push(
65-
{
66-
key: 'court',
67-
label: 'court',
68-
value: court,
69-
},
70-
);
71-
72-
this.pass.auxiliaryFields.push({
76+
this.pass.backFields.push({
7377
key: 'code',
7478
label: 'code',
7579
value: code,

0 commit comments

Comments
 (0)