<bdo id='GJFiw'></bdo><ul id='GJFiw'></ul>

    1. <i id='GJFiw'><tr id='GJFiw'><dt id='GJFiw'><q id='GJFiw'><span id='GJFiw'><b id='GJFiw'><form id='GJFiw'><ins id='GJFiw'></ins><ul id='GJFiw'></ul><sub id='GJFiw'></sub></form><legend id='GJFiw'></legend><bdo id='GJFiw'><pre id='GJFiw'><center id='GJFiw'></center></pre></bdo></b><th id='GJFiw'></th></span></q></dt></tr></i><div id='GJFiw'><tfoot id='GJFiw'></tfoot><dl id='GJFiw'><fieldset id='GJFiw'></fieldset></dl></div>
    2. <tfoot id='GJFiw'></tfoot>

      <legend id='GJFiw'><style id='GJFiw'><dir id='GJFiw'><q id='GJFiw'></q></dir></style></legend>

        <small id='GJFiw'></small><noframes id='GJFiw'>

      1. java时区不正确

        java incorrect timezone(java时区不正确)

        1. <i id='hANiE'><tr id='hANiE'><dt id='hANiE'><q id='hANiE'><span id='hANiE'><b id='hANiE'><form id='hANiE'><ins id='hANiE'></ins><ul id='hANiE'></ul><sub id='hANiE'></sub></form><legend id='hANiE'></legend><bdo id='hANiE'><pre id='hANiE'><center id='hANiE'></center></pre></bdo></b><th id='hANiE'></th></span></q></dt></tr></i><div id='hANiE'><tfoot id='hANiE'></tfoot><dl id='hANiE'><fieldset id='hANiE'></fieldset></dl></div>

            <small id='hANiE'></small><noframes id='hANiE'>

                <bdo id='hANiE'></bdo><ul id='hANiE'></ul>
              • <tfoot id='hANiE'></tfoot>
                  <tbody id='hANiE'></tbody>

                  <legend id='hANiE'><style id='hANiE'><dir id='hANiE'><q id='hANiE'></q></dir></style></legend>
                • 本文介绍了java时区不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个 Java 实例,它似乎使用了一个完全不正确的时区.Windows 使用的不是澳大利亚/悉尼时区,而是美国/加拉加斯时区.

                  I have an instance of Java which seems to be using a completely incorrect time zone. Instead of using the Australia/Sydney time zone which Windows is using, it is using the America/Caracas time zone.

                  我先通过系统时钟查看Windows时间,然后查看HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/ControlSet001ControlSet002.全部设置为悉尼时区.

                  I checked the Windows time through the system clock firstly, then checked HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/ and ControlSet001, ControlSet002. All are set to a Sydney time zone.

                  有人知道这是否是 Java 中的错误,还是指的是其他地方设置的时间?

                  Does anybody know if this is a bug in Java, or if it is referring to a time set elsewhere?

                  Java 版本为 1.6.0_06

                  Java version is 1.6.0_06

                  推荐答案

                  确保在启动应用程序时为 JVM 设置了时区:

                  Ensure you set the timezone for the JVM when starting the application:

                  -Duser.timezone="Australia/Sydney"
                  

                  这篇关于java时区不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How to send data to COM PORT using JAVA?(如何使用 JAVA 向 COM PORT 发送数据?)
                  How to make a report page direction to change to quot;rtlquot;?(如何使报表页面方向更改为“rtl?)
                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Is there any way to detect an RTL language in Java?(有没有办法在 Java 中检测 RTL 语言?)
                  How to load resource bundle messages from DB in Java?(如何在 Java 中从 DB 加载资源包消息?)
                  How do I change the default locale settings in Java to make them consistent?(如何更改 Java 中的默认语言环境设置以使其保持一致?)

                  1. <tfoot id='Jetrw'></tfoot>

                          <tbody id='Jetrw'></tbody>
                          <bdo id='Jetrw'></bdo><ul id='Jetrw'></ul>

                          <small id='Jetrw'></small><noframes id='Jetrw'>

                          <legend id='Jetrw'><style id='Jetrw'><dir id='Jetrw'><q id='Jetrw'></q></dir></style></legend>

                            <i id='Jetrw'><tr id='Jetrw'><dt id='Jetrw'><q id='Jetrw'><span id='Jetrw'><b id='Jetrw'><form id='Jetrw'><ins id='Jetrw'></ins><ul id='Jetrw'></ul><sub id='Jetrw'></sub></form><legend id='Jetrw'></legend><bdo id='Jetrw'><pre id='Jetrw'><center id='Jetrw'></center></pre></bdo></b><th id='Jetrw'></th></span></q></dt></tr></i><div id='Jetrw'><tfoot id='Jetrw'></tfoot><dl id='Jetrw'><fieldset id='Jetrw'></fieldset></dl></div>