FlutterFlow / flutterflow-issues

A community issue tracker for FlutterFlow.
120 stars 18 forks source link

Records Date to Firebase when only Time is chosen #1304

Closed ALazutin10 closed 1 year ago

ALazutin10 commented 1 year ago

Has your issue been reported?

Current Behavior

When using the Date/Time pick action, and time only is selected, upon submitting to the database (create document), by picking " "Date Picked" - that is just the calendar/time selection, it records both date and time when it should be just time. Only time is selected by the user.

Expected Behavior

Expect only the time to be recorded into the database since only time was selected, not date.

Steps to Reproduce

  1. Create new page
  2. Add a text or button and add the action to select Date/Time Picker
  3. Select Time is picker type
  4. Add a button to create a document and record Date Picked
  5. Test the set up, as a user, select a time and submit to create doc
  6. See in the database that both Date and Time are recorded when only time was picked

Reproducible from Blank

Bug Report Code (Required)

ITFXlvHlz85IvuZE7qrycMF4iWIwGUwbUOc7j9VEGAsjCePwOokxdczRahRVWOqHeXw/M1eipE8CpOyMiITxC8Y3OUuafqZ4zc9TUxDgWnumeLKyPLi3OH96BcpTGGqc38OJvBV+NftiSU462Uy2FuyQa3qCf9qOYwx5e6fDbOY=

Context

The bug report code is for an action, not a widget. It has affected our booking system since a user sets working hours that are applicable on multiple dates, not specific ones. It stalls the core performance of our application, because of this, availability is not shown.

Visual documentation

Screenshot 2023-08-17 at 20 22 47 Screenshot 2023-08-17 at 20 24 35

Additional Info

No response

Environment

- FlutterFlow version: 3.10.4
- Platform:MacOS Desktop
- Browser name and version:
- Operating system and version affected:
hariprasadms commented 1 year ago

Hi @ALazutin10 - We appreciate you bringing this up. In accordance with the date and time picker package used in FlutterFlow, it selects date and time are chosen as defaults when you select date/time from the UI. Use custom code if you wish to save or only display a particular date or time. I can confirm that, it is not a bug.