# YC for time zone change?

**URL:** https://community.glideapps.com/t/yc-for-time-zone-change/34402
**Category:** Ask for Help
**Created:** [November 11, 2021, 4:30pm UTC](https://community.glideapps.com/t/yc-for-time-zone-change/34402 "2021-11-11T16:30:26Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![George-Glide](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george-glide/32/22384_2.png) [@George-Glide](https://community.glideapps.com/u/George-Glide)
#### Post date: [November 12, 2021, 7:45pm UTC](https://community.glideapps.com/t/yc-for-time-zone-change/34402/13 "2021-11-12T19:45:13Z")

</div>

Here is a bit simpler way to get the timezone offset for the device using a Code/Javascript column.

The use case I can think of is that if you allow anyone to schedule things and they are in different time zones, you would save both the date/time as well as the timezone offset when the user creates the event. This way you can always calculate the events’ time shown in the user’s time, by doing some math with the saved timezone offset of the event and the current users’ timezone offset.

`return (new Date().getTimezoneOffset())/60`

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

---

_[View the full topic](https://community.glideapps.com/t/yc-for-time-zone-change/34402)._
