title: Adding a Time to a Date stamp before posting to Firebase
body: <p>I have a current issue now that the UK has entered daylight savings (i.e. moved from UTC to UTC+1).</p>
  <p>Dates that are stored as, for example 31st March 00:00:00 UTC+1 are being read as 30th March 23:00:00 UTC. The app is reading the dates correctly when displaying to the user, but I have a notification system that is sending notifications on the wrong date as a result.</p>
  <p>The date comes from a Form Builder field. I don't want the time shown to the user, just the date, but what I want to do is post this date to the Firestore Collection with a 2am time. For example if the user entered 31st March 2021 - I want 31st March 2021 02:00:00 added to the Collection.</p>
  <p>How best can I do this?</p>
  <p><strong>My Form Builder code is:</strong></p>
  <pre><code>FormBuilderDateTimePicker(
                                  attribute: 'dateChosen',
                                  onChanged: _onChanged,
                                  inputType: InputType.date,
                                  format: DateFormat(&quot;dd-MM-yyyy&quot;),
                                  decoration: const InputDecoration(
                                    labelText: 'Add Date',
                                  ),
                                  validator: (val) =&gt; null,
                                  initialValue: DateTime.now(),
                                  validators: [
                                    FormBuilderValidators.required(),
                                    (val) {
                                      if (val.compareTo(DateTime.now()) &lt; 0)
                                        return &quot;The end date must not be in the past&quot;;
                                    },
                                  ],
                                ),
  </code></pre>
  <p><strong>The code posting this to the Collection is as follows:</strong></p>
  <pre><code>_firestore
                                              .collection(
                                                  'thisCollection')
                                              .add({
                                            'Type': 'Niche',
                                            'nicheName': _fbKey
                                                .currentState.value['nicheName'],
                                            'Date': _fbKey
                                                .currentState.value['dateChosen'],
                                            'Posted': DateTime.now(),
                                            'uid': getCurrentUID(),
                                          });
  </code></pre>