ClientTimeZone
- Last Updated: December 26, 2023
- 2 minute read
- DataDirect Connectors
- JDBC
- Salesforce 6.0
- Documentation
Purpose
Specifies the time zone other than UTC (Universal Time Coordinated) that should
be used when translating data store time and timestamp values between the client and
the driver. Most data stores use UTC, while applications use and supply time and
timestamp values in local time for the client. If the ClientTimeZone value is not
specified (the initial default value), the driver uses system-specific client time
zone settings to convert between the UTC time used by the cloud service and the
local time used by the client application. The driver returns an error at connect
time if it cannot obtain the client time zone. Client time zone settings vary among
operating systems:
- On Windows systems, the driver translates the system time zone to an equivalent client time zone.
- On UNIX and Linux systems, the client time zone is set using the
TZvariable, with the following exceptions:- On Linux systems, if
TZis NULL or empty, the client time zone comes from theZONEvalue in the following file: /etc/sysconfig/clock - On Solaris systems,
TZmay containlocaltime. In this case, the driver uses the /etc/localtime link to determine the client time zone.
Dto the offset. - On Linux systems, if
Valid Values
timezone[,[+ |
-]HH[:MM]
[D]
where:
- timezone
- is a valid Java TimeZone ID. See your Java documentation or use the
TimeZone.getAvailableIDs()method to return a list of valid IDs. +|--
optionally specifies whether the offset is before or after Greenwich Mean Time.
- HH:MM
-
optionally specifies the number of hours and minutes to offset the time from Greenwich Mean Time.
D- signifies whether the time zone adjusts for daylight savings time.
Examples
America/New_YorkAmerica/New_York,-5DAmerica/New_York,-05:00DAsia/Calcutta,5:30Asia/Calcutta,+5:30
Data Source Method
setClientTimeZone
Default
None. The driver determines the client time zone based on the system-specific time zone settings.
Data Type
String