Skip to content

Commit

Permalink
fix(booking): return dateOnly on date getter
Browse files Browse the repository at this point in the history
  • Loading branch information
albertms10 committed Nov 20, 2022
1 parent 961c002 commit 53f932a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/model/booking/booking.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ class Booking extends Item {
_JsonFields.isLocked: isLocked,
};

/// Alias for [startDateTime].
DateTime? get date => startDateTime;
/// Date only part of [startDateTime].
DateTime? get date => startDateTime?.dateOnly;

TimeOfDay get startTime => TimeOfDay.fromDateTime(startDateTime!.toLocal());

Expand Down

0 comments on commit 53f932a

Please sign in to comment.