SRvSaha / CoWinVaccineSlotFinder

Cross-Platform Software to Fetch the Available Slots & Book the Appointment for COVID-19 Vaccination
https://shawt.io/r/sYv
MIT License
81 stars 32 forks source link

Default Date To Search for Slot Booking to be done for Next Day for better UX #13

Closed SRvSaha closed 3 years ago

SRvSaha commented 3 years ago

Currently, DateToSearch the slot for Vaccination is set as CurrentDate. So currently, is date is not changed, slots for the current date are searched. And in case user changes the date, the date entered by User is used for searching.

Date is a very peculiar thing and the format of the date used is as per the current date format of the System example: 12-May-2021 as the format of my system's date is DD-MM-YYYY. This might not be the case for every user's system.

image image

Since generally slots are opened for the next day for booking:

eg. Slots open at 8 PM in Mumbai on say 10-05-2021 to Book for 11-05-2021.

As such, it is better to keep the DateToSearch as the date of the next day and in case, user wants to book for the current day, then changes has to be done in appsettings.json for the field DateToSearch.

"DateToSearch": "" // System's Date Format, Blank implies next date

@priyanka1111 Please review and make changes in the README and config

SRvSaha commented 3 years ago

Feature Implemented with Commit: e6e71fcab956d0289f9fef67c01510d2302a7bf0

@PSuyog97 Please review the change, so that it can be added in the upcoming release

SRvSaha commented 3 years ago

Feature Integrated with Release v2.3.0-x86/x64.