jaikamat / clubhouse-pos-importer

Monorepo for an LGS's inventory management system
1 stars 0 forks source link

Fix date selection bug #227

Closed jaikamat closed 3 years ago

jaikamat commented 3 years ago

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 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.