# Date&Time Error... does Adalo account for Daylight Savings?

**URL:** <https://forum.adalo.com/t/date-time-error-does-adalo-account-for-daylight-savings/8908>\
**Category:** Get Help\
**Created:** [February 8, 2021, 3:31am UTC](https://forum.adalo.com/t/date-time-error-does-adalo-account-for-daylight-savings/8908 "2021-02-08T03:31:35Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sadalo](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@sadalo](https://forum.adalo.com/u/sadalo)\
**Post date:** [February 8, 2021, 3:31am UTC](https://forum.adalo.com/t/date-time-error-does-adalo-account-for-daylight-savings/8908/1 "2021-02-08T03:31:35Z")

</div>

Hi everyone, I created an Action in my app that adds a certain amount of time to a Start Date. I used this tutorial to figure out how to calculate/add times: [Help : StarTIME +60 = funny Endtime 🤔 - #3 by karimoo](https://forum.adalo.com/t/help-startime-60-funny-endtime/1987/3).

Say my start date is 1/31/2021.

According to this tutorial, 1:00PM = 0.542 (since 1:00 is 780 minutes from the start of a day and 780/1440 = 0.542).

When I add 0.542 to 1/31/2021, I get January 31, 2021 1:00PM ( ✅ this is what I want).

I want to get the same time on 4/25/2021, which is 84 days later. But when I add 84.542 to 1/31/2021, I get April 25, 2021 2:00PM ( ❌ this is not what I want).

It seems to be pushing all my times 1 hour forward! Is Adalo accounting for Daylight Savings ending, or something else that I’m missing? And if this is the case - any way I could override this so I can continue to iterate my dates at the same time? Thank you!

---

<div class="post-metadata">

**Author:** ![sadalo](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@sadalo](https://forum.adalo.com/u/sadalo)\
**Post date:** [February 8, 2021, 3:49am UTC](https://forum.adalo.com/t/date-time-error-does-adalo-account-for-daylight-savings/8908/3 "2021-02-08T03:49:15Z")

</div>

Thanks @karimoo (and seriously appreciate the great ‘StarTIME’ post - it’s helped me so much).

Here’s some screenshots that might help explain what I’m seeing. Even when I add just 84 days to a date, I’m seeing it shift 1 hour forward after 3/14 (which is when Daylight Savings ends this year).

**The button adds the second value (days) to the selected Date in the first field:**

 ![Screen Shot 2021-02-07 at 10.45.32 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/3/385162fd337cc033b85a25fb4bc198ff1a46523e.png)

**The answer I get:**  
 ![Screen Shot 2021-02-07 at 10.45.39 PM](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/a/add2630ba0b2674b25c39a56a51930c641bcd297.png)

The answer should be Date at 12:00AM, but here it shifts to 1:00AM. Would love to override and ignore daylight savings completely. The backend Actions I have just iterate days from a certain Start Date, and I can’t have the time re-adjusted at each iteration (just not feasible with the volume/number of iterations I have).

---

<div class="post-metadata">

**Author:** ![karimoo](https://avatars.discourse-cdn.com/v4/letter/k/ad7895/32.png) [@karimoo](https://forum.adalo.com/u/karimoo)\
**Post date:** [February 10, 2021, 5:35am UTC](https://forum.adalo.com/t/date-time-error-does-adalo-account-for-daylight-savings/8908/4 "2021-02-10T05:35:58Z")

</div>

@sadalo Now I got your point (I hope 😉 )  
The short answer is: The Adalo database is handling the time conversion including DST - and we have not way to influence it. There is no setting (like in Airtable!) to include or exclude timezone conversion).  
And:  
**There is a timezone problem** with this workaround to calculate with date and time.

That is what I know:  
The values for Date/Time property are stored in the database including the timezone information calculate down to UTC.  
That means if I store a date with 16:00PM in my timezone (UTC+4) it actually is saved with 12:00PM(UTC).

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/0/0147920b966c9da2d3be8c4f426a13d49d1bbb6d.png)  
For display the timezone of the user is applied.  
So the save value 12:00(UTC) will be displayed for me as 16:00PM. This will not change as Dubai does not use Daylight Saving Time(DST).  
My family in Germany will see 13:00PM for a date in winter (Central European Time/CET - UTC+1),  
but 14:00PM for a date in summer (Central European Summer Time/CEST - UTC+2).  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/fc28a46d7428b0edf3a4985aff6e0682d27bbdf9.png)

Using the workaround does not take the timezone into account.

There is a way (another workaround) to figure out your timezone using the difference of Date vs. DateTime database fields (see below).  
But as you already mentioned this might be a bigger effort.

If you still have the option, try to move all your date/time information to Airtable.  
This way you can do all the date&time calculations Adalo does not offer using Airtable Formula, including the option to deactivate timezone conversion, first day of the week, month, weekday …  
But be aware that there are other restrictions with the Airtable integration such as paging (max records returned) or Lookup fields.

**Workaround to calculate user timezone offset**

1. Save the “Start of the day” to a database field of type Date in the User collection  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/3/308debfddb4fca6541230c3daa1ead6f31aa2e56.png)

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/fbad9f3beb5e29a6f5c059c5947187d07d904224.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/c/cfd1e63388470a7ce35e699428ad4dcc313e966b.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/5/569909f5230dc8a8946d8faa109134476f21f08e.png)  
2. Calculate the time difference and save it to the user collection as UTC offset  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/3/36961e5a741b5e91f602f88f425081b19788d0fd.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/c/c9851faa5331524d5a840182c6493881008698af.png)

---

<div class="post-metadata">

**Author:** ![sadalo](https://avatars.discourse-cdn.com/v4/letter/s/c77e96/32.png) [@sadalo](https://forum.adalo.com/u/sadalo)\
**Post date:** [February 11, 2021, 4:56am UTC](https://forum.adalo.com/t/date-time-error-does-adalo-account-for-daylight-savings/8908/5 "2021-02-11T04:56:12Z")

</div>

Wow, as always @karimoo such a wealth of knowledge to unpack here. Both ideas have their own pros, and I’ll have to look into each one more. I personally haven’t used Airtable before, but it sounds like it may offer some extra formulaic flexibility.

Thanks so much for the help!

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [February 21, 2021, 4:56am UTC](https://forum.adalo.com/t/date-time-error-does-adalo-account-for-daylight-savings/8908/6 "2021-02-21T04:56:12Z")

</div>

Closed on February 21, 2021, 4:56am UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
