2017-10-06 7 views
1

Sql Server에서 데이터를 검색하려고합니다. 응답에서 DSS는 날짜를 UTC 시간대로 변환합니다. SQL 서버 날짜 WSO2 DSS 시간대 문제

2008-06-30 = 00 : 00 :

로서

하지만 DSS 결과 날짜 = "00 : 00 00.000-07 2008-06-29T17"에서 00.000 아래의 링크마다 우리는 DSS 서버 (창)에서 UTC 형식을 사용하지 않으려 고했지만 작동하지 않습니다.

WSO2 속성 아래 false로 언급하지만하지 않은 wso2server.bat

-Ddss.legacy.timezone.mode = 사실

https://docs.wso2.com/display/DSS351/Timestamp+Conversion+for+RDBMS 존재합니다. false로 해당 속성 값을 추가하려고했지만 작동하지 않습니다.

정확한 SQL Server 날짜가 필요합니다. 누군가가 저에게 어떻게하는지 알려주실 수 있습니까?

답변

0

wso2server.bat에서 문제를 해결 한 아래 위치에 -Ddss.legacy.timezone.mode = true 속성을 추가했습니다. CMD_LINE_ARGS = -Xbootclasspath/a : % CARBON_XBOOTCLASSPATH % -Xms256m -Xmx1024m -XX : MaxPermSize = 256m -XX : + HeapDumpOnOutOfMemoryError -XX : HeapDumpPath = "% CARBON_HOME % \ repository \ logs \ heap-dump.hprof"-Dcom.sun .management.jmxremote -classpath % CARBON_CLASSPATH % % JAVA_OPTS % -Djava.endorsed.dirs = % JAVA_ENDORSED % -Dcarbon.registry.root =/-Dcarbon.home = "% CARBON_HOME %"-Dwso2.server.standalone = true -Djava .com = "% JAVA_HOME % \ bin \ java"-Djava.opts = "% JAVA_OPTS %"-Djava.io.tmpdir = "% CARBON_HOME % \ tmp"-Dcatalina.base = "% CARBON_HOME % \ lib \ tomcat" -Dwso2.carbon.xml = % CARBON_HOME % \ repository \ conf \ carbon.xml -Dwso2.registry.xml = "% CARBON_HOME % \ repository \ conf \ registry.xml"-Dwso2.user.mgt.xml = "% CARBON_HOME % \ CARBON_HOME % \ repository \ conf \ mgt-transports.xml "-Djava.util.logging.config.file ="% 저장소 \ conf \ etc \ logging-bridge.properties "-Djava.util.logging.manager = org.apache.juli.ClassLoaderLogManager -Dcarbon.config.dir.path ="% CARBON_HOME % \ re \ conf \ -Dcomponents.repo = "% CARBON_HOME % \ repository \ components"-Dconf.location = "% CARBON_HOME % \ repository \ conf"-Dcom.atomikos.icatch.file = "% CARBON_HOME % \ lib \ transactions. 속성 "-Dcom.atomikos.icatch.hide_init_file_path ="true "-Dorg.apache.jasper.compiler.Parser.STRICT_QUOTE_ESCAPING = false -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER = true -Dcom.sun.jndi.ldap .connect.pool.authentication = simple -Dcom.sun.jndi.ldap.connect.pool.timeout = 3000 -Dorg.terracotta.quartz.skipUpdateCheck = true -Dcarbon.classpath = % CARBON_CLASSPATH % -Dfile.encoding = UTF8 -DworkerNode = false -Dorg.wso2.ignoreHostnameVerification = true -Ddss.legacy.timezone.mode = true

0

-Ddss.legacy.timezone.mode = true (문서 문제점이 있었지만 지금 수정되었습니다.) wso2server.bat 또는 wso2server.sh 스크립트에서 Java 시스템 특성으로 정의되어야합니다. 이것은 기본적으로 추가되지 않습니다. 이 기능은 DSS 3.5.1 버전에서 지원됩니다.

+0

업데이트 해 주셔서 감사합니다. 그러나이를 wso2server.bat 파일에서 정의하는 방법은 무엇입니까? 박쥐 파일에 예제 구성을 주시겠습니까? JAVA_OPTS = -Xdebug -Xnoagent -Djava.compiler = NONE -Xrunjdwp : transport = dt_socket, server = y, suspend = y, address = % DEBUG_PORT %, ** - Ddss.legacy.timezone.mode = true ** ?? – munna

+0

이 요청에 대한 업데이트가 있습니까? 누군가 제발 도와주세요. – munna

+1

아래에 wso2.bat 파일의 명령을 추가했습니다. ** JAVA_OPTS = -Ddss.legacy.timezone.mode = false -Xdebug -Xnoagent -Djava.compiler = NONE -Xrunjdwp : transport = dt_socket, server = y, suspend = y , 주소 = % DEBUG_PORT % **하지만 내 결과는 여전히 내 응답에 UTC 시간대가 표시됩니다. ** 2004-05-28T03 : 52 : 43.167-07 : 00 ** – munna