Skip to content

Commit

Permalink
Onclusive full-day event appears under wrong date in search results l…
Browse files Browse the repository at this point in the history
…ist [SDCP-651] (#1755)
  • Loading branch information
devketanpro authored Jan 16, 2023
1 parent 2a0087f commit 54699db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/components/UI/DateTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function DateTime({
let eventStartDate;

if (isFullDay) {
eventStartDate = moment.utc(date).format(dateFormat);
eventStartDate = moment(date).format(dateFormat);
} else if (noEndTime) {
eventStartDate = moment(date).format(dateTimeFormat);
} else {
Expand All @@ -56,7 +56,7 @@ function DateTime({
if ((noEndTime || isFullDay) && !multiDay) {
eventEndDate = null;
} else if ((noEndTime || isFullDay) && multiDay) {
eventEndDate = moment.utc(date).format(dateFormat);
eventEndDate = moment(date).format(dateFormat);
} else {
eventEndDate = moment(date).format(dateTimeFormat);
}
Expand Down

0 comments on commit 54699db

Please sign in to comment.