Skip to content

Commit

Permalink
fixed information displayed in day-selector buttons (there was a mix …
Browse files Browse the repository at this point in the history
…between year/month/day)
  • Loading branch information
fcamblor committed May 10, 2023
1 parent 6cedca6 commit adc3f21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mobile/src/models/DatesAndTime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ export function localDateToReadableParts(localDate: ISOLocalDate|Temporal.ZonedD
day: match(dateParts.find(p => p.type === 'day'))
.with(undefined, undef => undef)
.otherwise(part => parseInt(part.value)),
month: dateParts.find(p => p.type === 'year')?.value,
year: match(dateParts.find(p => p.type === 'day'))
month: dateParts.find(p => p.type === 'month')?.value,
year: match(dateParts.find(p => p.type === 'year'))
.with(undefined, undef => undef)
.otherwise(part => parseInt(part.value)),
weekday: dateParts.find(p => p.type === 'weekday')?.value,
Expand Down

0 comments on commit adc3f21

Please sign in to comment.