# Starting notebook on scheduled time for customer in different timezone

**URL:** <https://forums.losant.com/t/starting-notebook-on-scheduled-time-for-customer-in-different-timezone/2142>\
**Category:** Help\
**Tags:** workflow\
**Created:** [August 29, 2019, 7:44pm UTC](https://forums.losant.com/t/starting-notebook-on-scheduled-time-for-customer-in-different-timezone/2142 "2019-08-29T19:44:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [August 29, 2019, 7:44pm UTC](https://forums.losant.com/t/starting-notebook-on-scheduled-time-for-customer-in-different-timezone/2142/1 "2019-08-29T19:44:46Z")

</div>

What’s the best way to making sure a Notebook, if get gets triggered at let’s say 7 pm pacific time today, shows data from 00.00 to 24.00 today pacific time, even though the day isn’t over yet.

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [August 29, 2019, 8:20pm UTC](https://forums.losant.com/t/starting-notebook-on-scheduled-time-for-customer-in-different-timezone/2142/2 "2019-08-29T20:20:56Z")

</div>

Hi @Lars_Andersson,

I believe you will first need to set your query time explicitly in the Notebook: Execute Node as the end of the day (or whichever time you would like). Then your inputs should be set to pull data for “query time minus 24 hours,” giving a full calendar day. Some math will also have to be done to convert to the Pacific timezone.

It was also suggested that you could use a Timer Node with a [cron string](https://docs.oracle.com/cd/E12058_01/doc/doc.1014/e12030/cron_expressions.htm) to trigger your Notebook at the same time daily.

Thanks!  
Julia

---

<div class="post-metadata">

**Author:** ![Lars\_Andersson](https://avatars.discourse-cdn.com/v4/letter/l/f05b48/32.png) [@Lars\_Andersson](https://forums.losant.com/u/Lars_Andersson)\
**Post date:** [October 29, 2019, 2:02am UTC](https://forums.losant.com/t/starting-notebook-on-scheduled-time-for-customer-in-different-timezone/2142/9 "2019-10-29T02:02:21Z")

</div>

How would I set up to run a notebook for a specific 24 hour day in the past?  
When selecting Input data and custom time range, I can set specific fixed start and end time, but I don’t see how I can set those dynamically when executing a notebook from a workflow on demand.

---

<div class="post-metadata">

**Author:** ![anaptfox](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/anaptfox/32/873_2.png) [@anaptfox](https://forums.losant.com/u/anaptfox)\
**Post date:** [October 29, 2019, 1:36pm UTC](https://forums.losant.com/t/starting-notebook-on-scheduled-time-for-customer-in-different-timezone/2142/11 "2019-10-29T13:36:56Z")

</div>

@Lars_Andersson,

You should be able to do this using the Query Time:

> **[Notebook: Execute Node](https://docs.losant.com/workflows/outputs/notebook-execute/)**
>
> Learn more about the Losant Notebook: Execute node.

> **[Notebook Inputs](https://docs.losant.com/notebooks/inputs/#query-times)**
>
> Learn about using Losant device and table data within your notebooks.

If you set all of your inputs to be the last 24 hours of data, you can change the Query Time to pick which 24 hours you want.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/d/d9da025de877e4bbb09d6f40a43a23b76ed65914.png)

In this image, the example is 7 days. But the concept applies to you:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/f/fe972953f1e84bedbeaa40c03ab6749018907875.png)

You will just change your query time when you kick off the notebook using the [Notebook: Execute Node](https://docs.losant.com/workflows/outputs/notebook-execute/).
