Users who received cards in the morning could not view the day's receiving records because the server issued a created_at date in its local time, which was at a sufficient enough offset to prevent querying the day's receipts properly. In this PR, we integrate the moment date management library and use utc to create consistent dates.
I've also chosen to widen the range of the query to the beginning of startDate and the end of endDate for a more comprehensive search.
Summary
Users who received cards in the morning could not view the day's receiving records because the server issued a
created_at
date in its local time, which was at a sufficient enough offset to prevent querying the day's receipts properly. In this PR, we integrate themoment
date management library and useutc
to create consistent dates.I've also chosen to widen the range of the query to the beginning of
startDate
and the end ofendDate
for a more comprehensive search.