# 🕒 System/GMT Time - Solved!

**URL:** https://community.glideapps.com/t/system-gmt-time-solved/27524
**Category:** Project Showcase
**Created:** [June 2, 2021, 3:27pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524 "2021-06-02T15:27:23Z")
**Posts on this page:** 20
**Page:** 3

<div class="post-metadata">

### Author: ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)
#### Post date: [June 4, 2021, 10:08pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/41 "2021-06-04T22:08:22Z")

</div>

Hola de nuevo

@Simon_Hill no problem, I understand what you meant. What we are looking for (in my case) is a reliable time using an automatic way without firing a manual action in the middle. Also, if we can do it using Glide tools 100% we would make a home run but sometimes we wish and sometimes we fail 🙃

@Jeff_Hager you’re absolutely right… te odio! 🤣  
You remind me my mom, she always paid attention to details and those rare scenarios that make an exception. I had noticed that problem with timezones with -/+ 30 or 45 min thinking in my country (currently Venezuela quit using -4:30 offset and now we use 4:00).  
Having said this, my workaround is useful for 93% of cases 🤐

Have a nice night… feliz noche!

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 4, 2021, 10:15pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/42 "2021-06-04T22:15:26Z")

</div>

> [@gvalero](#):
>
> Also, if we can do it using Glide tools 100% we would make a home run but sometimes we wish and sometimes we fail 🙃

Just to clarify, my solution is 100% Glide. 4 columns in a glide table to determine GMT, which could probably be condensed into 2 columns, to determine GMT or any other time zone (GMT+2 or GMT-2) if needed.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 5, 2021, 12:31pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/43 "2021-06-05T12:31:56Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/3/d38e9b2ddb375d02f48201c380467f18b09afd72.png)

@Jeff_Hager the medium format of date/time breaks the logic because it is localized and might include some words that are not “understood” by your logic (in my case it’s “tháng” - which means “month”).

A short format fixes it.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/3/238538ff7d0dc884c4997f775798949b367d5f23.png)

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 5, 2021, 12:47pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/44 "2021-06-05T12:47:39Z")

</div>

Good to know. I’ll update it shortly. Looks like only the Local time needs to be in the short format?

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [June 5, 2021, 1:21pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/45 "2021-06-05T13:21:21Z")

</div>

Yes, only the first one.

---

<div class="post-metadata">

### Author: ![Simon\_Hill](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/simon_hill/32/94730_2.png) [@Simon\_Hill](https://community.glideapps.com/u/Simon_Hill)
#### Post date: [June 5, 2021, 1:51pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/46 "2021-06-05T13:51:05Z")

</div>

Gvalero, to confirm:

My solution works 100% of the time so long as the app is active  
Your solution works 93% of the time but still works when the app is not being used. 🤷‍♂️

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 5, 2021, 2:12pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/47 "2021-06-05T14:12:56Z")

</div>

I think he means 93% in that it covers all timezones except those rare ones that fall on the 1/2 hour or 3/4 hour, which could throw off the result by an hour for part of an hour. But only in those odd timezones.

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 5, 2021, 2:17pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/48 "2021-06-05T14:17:59Z")

</div>

@ThinhDinh Ok, I changed the Local Date Time to the Short Format for the calculation and added a new math column so I could reformat it to the Medium Format for display purposes.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [June 8, 2021, 3:49pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/49 "2021-06-08T15:49:36Z")

</div>

@Jeff_Hager I can’t quite put my finger on why, but I just stumbled on this and it reminded me of you…

[![](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/e/9e3e3f8b2f436554f9ba05ddf9e0c8d96b74abb5.jpeg "The Problem with Time & Timezones - Computerphile") ](https://www.youtube.com/watch?v=-5wpm-gesOY)

🤣 🤣

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 8, 2021, 4:08pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/50 "2021-06-08T16:08:51Z")

</div>

🤣 🤣 Ha! That was great! That is date and time in a nutshell. Seems simple, but gets more complicated the more you think about it. Thankfully I don’t have to deal with anything nearly that complicated at work. We have servers in different time zones, but everything is synced to one time zone.

I wonder what kind of business that guy works at. Sure covers a lot of different users. 😉

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [June 27, 2021, 2:52am UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/51 "2021-06-27T02:52:50Z")

</div>

This just completed the last piece in the puzzle regarding adding Google calendar events for the user’s local time. Brilliant!!!

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [June 27, 2021, 5:03pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/52 "2021-06-27T17:03:37Z")

</div>

@Jeff_Hager Slight issue with the logic—it’s sending me to tomorrow. Ideas?

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 27, 2021, 7:37pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/53 "2021-06-27T19:37:43Z")

</div>

I’ll take a look at the logic. I assume the calculated date in the table has that wrong day and that’s what’s being passed to the calendar?

---

<div class="post-metadata">

### Author: ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)
#### Post date: [June 27, 2021, 8:04pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/54 "2021-06-27T20:04:38Z")

</div>

Ya. Figured it out. I was using the start/end times to figure out the offset and not “now”. Works now!

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [June 27, 2021, 8:18pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/55 "2021-06-27T20:18:47Z")

</div>

Ahh, good. Made me nervous. 😉

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [September 30, 2021, 12:47pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/56 "2021-09-30T12:47:31Z")

</div>

@Jeff_Hager - I implemented this method in one of my apps yesterday, and it was working perfectly. But just now I checked and I’m suddenly getting a GMT offset of -712 hours (it should be +8)

Any idea what might have gone wrong?

 ![Screen Shot 2021-09-30 at 8.45.42 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/9/3964d4fc231970b036096028b2b8f1dc859fe9b2.png)

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [September 30, 2021, 1:24pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/57 "2021-09-30T13:24:17Z")

</div>

Must be something with crossing over to a different month??? 712 hours is 29.6 days and a lot of the math uses the day number. I’ll have to think about this.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [September 30, 2021, 1:27pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/58 "2021-09-30T13:27:18Z")

</div>

mmm, but it’s still 30th September here (for another 2.5 hours), so `Day(now)` still returns 30…

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [September 30, 2021, 1:40pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/59 "2021-09-30T13:40:19Z")

</div>

Your formula looks different from what I have in the first post…but nothing is jumping out to me that would cause such a large offset.

If you break it down, what do you get for a value for each part?  
What is your hour(gmt), day(gmt), hour(ldt), day(ldt) so I can hand calc it with your formula?

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [September 30, 2021, 1:46pm UTC](https://community.glideapps.com/t/system-gmt-time-solved/27524/60 "2021-09-30T13:46:54Z")

</div>

Let me make sure I’m using the correct version. I copied the formula from a copy I made some time ago, so it might be out of date.

But… I just loaded up your [copyable app](https://embarrassed-shoe-5921.glideapp.io/) in my browser, and this is what I get:

 ![Screen Shot 2021-09-30 at 9.40.13 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/1/f18d9fe8ab79aa9abab22cb491bcd6ad1605e283.jpeg)

> [@Jeff\_Hager](#):
>
> If you break it down, what do you get for a value for each part?  
> What is your hour(gmt), day(gmt), hour(ldt), day(ldt) so I can hand calc it with your formula?

- Hour(gmt) =\> 5
- Day(gmt) =\> 1
- Hour(ldt) =\> 21
- Day(ldt) =\> 30

Hour(gmt) and Day(gmt) are both wrong. They should be 30 and 13 respectively. So I guess that suggests that the Glide “trick” isn’t working the way we expect it to?

[Previous page](https://community.glideapps.com/t/system-gmt-time-solved/27524.md?page=2)

[Next page](https://community.glideapps.com/t/system-gmt-time-solved/27524.md?page=4)
