Skip to main content
Version: Python

How do I set the default timezone in Deephaven Community Core?

There are two ways to set the default time zone in Deephaven.

Change displayed time zone in the UI

Setting the default time zone via the UI changes how date-time data gets displayed, but not how it's handled by the engine. Click the gear icon in the top right corner of the UI, and set the timezone via the dropdown menu. For more information, see here.

Change the default time zone used by the engine

To actually change the default time zone used by the engine, you need to pass an additional space-separated configuration property when you start Deephaven.

The following docker-compose modifies Deephaven's basic Python configuration by setting the default timezone to America/New_York:

version: "3.4"

services:
deephaven:
image: ghcr.io/deephaven/server:${VERSION:-latest}
ports:
- "${DEEPHAVEN_PORT:-10000}:10000"
volumes:
- ./data:/data
environment:
- START_OPTS=-Xmx4g -Duser.timezone="America/New_York"

The following Docker command modifies the one-liner in our quickstart to set the default timezone to America/New_York:

docker run --rm --name deephaven -p 10000:10000 --env START_OPTS=-Dauthentication.psk=YOUR_PASSWORD_HERE -Duser.timezone="America/New_York" ghcr.io/deephaven/server:latest

The following Python code starts a Deephaven server from Python with the default timezone set to America/New_York:

from deephaven_server import Server

s = Server(port=10000, jvm_args=["-Xmx4g", "-Duser.timezone='America/New_York'"])
note

These FAQ pages contain answers to questions about Deephaven Community Core that our users have asked in our Community Slack. If you have a question that is not in our documentation, join our Community and we'll be happy to help!