# Date discrepancy between date picker and DB

**URL:** <https://forum.bubble.io/t/date-discrepancy-between-date-picker-and-db/299855>\
**Category:** Need help\
**Created:** [December 31, 2023, 3:20am UTC](https://forum.bubble.io/t/date-discrepancy-between-date-picker-and-db/299855 "2023-12-31T03:20:45Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sdmarsh03](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sdmarsh03](https://forum.bubble.io/u/sdmarsh03)\
**Post date:** [December 31, 2023, 3:20am UTC](https://forum.bubble.io/t/date-discrepancy-between-date-picker-and-db/299855/1 "2023-12-31T03:20:45Z")

</div>

I have a date picker in my app. When I use my live version and select a date and save it to my DB, it’s the same. However, when a user of my app does the same thing, the date is one day off from the date picker. Anyone know why that is or how to fix it?

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [December 31, 2023, 3:28am UTC](https://forum.bubble.io/t/date-discrepancy-between-date-picker-and-db/299855/2 "2023-12-31T03:28:22Z")

</div>

Is your user located in another time zone?

---

<div class="post-metadata">

**Author:** ![sdmarsh03](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sdmarsh03](https://forum.bubble.io/u/sdmarsh03)\
**Post date:** [December 31, 2023, 3:39am UTC](https://forum.bubble.io/t/date-discrepancy-between-date-picker-and-db/299855/3 "2023-12-31T03:39:56Z")

</div>

Yes. They are one timezone ahead of me

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [December 31, 2023, 3:41am UTC](https://forum.bubble.io/t/date-discrepancy-between-date-picker-and-db/299855/4 "2023-12-31T03:41:27Z")

</div>

This is the reason then.

Save the dates not using the current user time zone but rather a static one.

---

<div class="post-metadata">

**Author:** ![sdmarsh03](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sdmarsh03](https://forum.bubble.io/u/sdmarsh03)\
**Post date:** [December 31, 2023, 3:42am UTC](https://forum.bubble.io/t/date-discrepancy-between-date-picker-and-db/299855/5 "2023-12-31T03:42:24Z")

</div>

I apologize. This is my first time venturing into building an app. How do you create a static time zone? Do you do that in a formula or is that a setting somewhere?

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [December 31, 2023, 3:43am UTC](https://forum.bubble.io/t/date-discrepancy-between-date-picker-and-db/299855/6 "2023-12-31T03:43:34Z")

</div>

Date formatted as

---

<div class="post-metadata">

**Author:** ![sdmarsh03](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sdmarsh03](https://forum.bubble.io/u/sdmarsh03)\
**Post date:** [December 31, 2023, 3:44am UTC](https://forum.bubble.io/t/date-discrepancy-between-date-picker-and-db/299855/7 "2023-12-31T03:44:50Z")

</div>

It seems like that changes the value to a text. Do I just adjust by DB to a text field instead of a date field?

---

<div class="post-metadata">

**Author:** ![cmarchan](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/cmarchan/32/253062_2.png) [@cmarchan](https://forum.bubble.io/u/cmarchan)\
**Post date:** [December 31, 2023, 4:25am UTC](https://forum.bubble.io/t/date-discrepancy-between-date-picker-and-db/299855/8 "2023-12-31T04:25:15Z")

</div>

> **[Dates and time](https://manual.bubble.io/help-guides/design/elements/input-forms/dates-and-time)**
>
> This section covers elements that accepts dates and time as user input

---

<div class="post-metadata">

**Author:** ![sdmarsh03](https://avatars.discourse-cdn.com/v4/letter/s/82dd89/32.png) [@sdmarsh03](https://forum.bubble.io/u/sdmarsh03)\
**Post date:** [December 31, 2023, 5:22am UTC](https://forum.bubble.io/t/date-discrepancy-between-date-picker-and-db/299855/9 "2023-12-31T05:22:05Z")

</div>

Thank you so much for your help!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [March 10, 2024, 3:20am UTC](https://forum.bubble.io/t/date-discrepancy-between-date-picker-and-db/299855/10 "2024-03-10T03:20:54Z")

</div>

Closed on March 10, 2024, 3:20am UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
