Search code examples
time-seriestimezoneapache-iotdb

How to set the timezone different from the client-side in Apache IoTDB?


Since Apache IoTDB is a time series database, I want to know if IoTDB can set the timezone of data storage other than the timezone of client-side. How to configure time zone in interface of IoTDB?


Solution

  • Apache IoTDB can change the time zone in both JDBC and session native interface connections. You can use (IoTDBConnection) connection.setTimeZone("+08:00") for JDBC interface or session.setTimeZone("+08:00") for session interface to set the time zone you want. In the CLI command line tool of IoTDB, the way to manually set the time zone through command is SET time_zone=+08:00.