FarmBot / Farmbot-Web-App

Setup, customize, and control FarmBot from any device
https://my.farm.bot
MIT License
890 stars 329 forks source link

Date set is not equal to date selected in datepicker #2388

Open Kabooommuc opened 1 year ago

Kabooommuc commented 1 year ago

Expected Behavior

When I'm manipulating the date of planting, it opens a datepicker. When I click on a date, this date will be set as date I planted the plant.

Actual Behavior

Same as above, except the date I click on is not the date which is set. The date set is the selected date -1

Steps to Reproduce

Add plant manually, should be "1 day old". Then edit the plant and select a new date.

MrBlackGhostt commented 9 months ago

Hi @Kabooommuc ,

I hope this message finds you well. I've been exploring the project and noticed issue #2388 with the date picker functionality when manipulating the planting date. Here are the details:

Issue: When manipulating the date of planting, the date picker opens as expected. However, upon clicking on a date, the date set as the planting date is the selected date minus one day.

Steps to Reproduce:

Add a plant manually to make it "1 day old." Edit the plant and select a new date for planting. Expected Behavior: The selected date should be set as the planting date without any modification.

Actual Behavior: The date set is the selected date minus one day.

My proficiency in React, Redux toolkit and experience in similar projects position me well to address this discrepancy effectively.

Please assign this issue to me, and I'll promptly work on providing a fix.

Thank you for your attention, and I look forward to contributing to the project.

Best regards, Hemant