# CURRENT\_TIMESTAMP and CURRENT\_TIME return different time

**URL:** <https://community.dremio.com/t/current-timestamp-and-current-time-return-different-time/3003>\
**Category:** Uncategorized\
**Created:** [March 17, 2019, 11:29am UTC](https://community.dremio.com/t/current-timestamp-and-current-time-return-different-time/3003 "2019-03-17T11:29:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jue\_Lin\_Zhuang\_Jack](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/jue_lin_zhuang_jack/32/1455_2.png) [@Jue\_Lin\_Zhuang\_Jack](https://community.dremio.com/u/Jue_Lin_Zhuang_Jack)\
**Post date:** [March 17, 2019, 11:29am UTC](https://community.dremio.com/t/current-timestamp-and-current-time-return-different-time/3003/1 "2019-03-17T11:29:14Z")

</div>

Hi,  
I run CURRENT\_TIMESTAMP and CURRENT\_TIME return different time.  
How to set the global timezone of dremio ?

**env:**  
dremio 3.1 OSS in docker

dremio-env with timezone set :

DREMIO\_JAVA\_EXTRA\_OPTS="-Duser.timezone=Asia/Shanghai -Dsaffron.default.charset=UTF-16LE"

DREMIO\_JAVA\_CLIENT\_EXTRA\_OPTS="-Duser.timezone=Asia/Shanghai -Dsaffron.default.charset=UTF-16LE"

DREMIO\_JAVA\_SERVER\_EXTRA\_OPTS="-Duser.timezone=Asia/Shanghai -Dsaffron.default.charset=UTF-16LE"

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [April 29, 2019, 3:19am UTC](https://community.dremio.com/t/current-timestamp-and-current-time-return-different-time/3003/2 "2019-04-29T03:19:22Z")

</div>

Hi @Jue_Lin_Zhuang_Jack

Dremio normalizes to UTC. CURRENT\_TIMESTAMP returns always in UTC  
CURRENT\_DATE and CURRENT\_TIME returns in local or in your case it Shanghai time (whatever set via dremio-env)

Note: I have put in a request to update the documentation

Thanks  
@balaji.ramaswamy

---

<div class="post-metadata">

**Author:** ![Jue\_Lin\_Zhuang\_Jack](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/jue_lin_zhuang_jack/32/1455_2.png) [@Jue\_Lin\_Zhuang\_Jack](https://community.dremio.com/u/Jue_Lin_Zhuang_Jack)\
**Post date:** [May 3, 2019, 9:22am UTC](https://community.dremio.com/t/current-timestamp-and-current-time-return-different-time/3003/3 "2019-05-03T09:22:33Z")

</div>

Thanks very much !!!
