1 Reply Latest reply: Apr 5, 2012 12:37 PM by 817264 RSS

    user.timezone in jnlp


      I tried using the following to set timezone but din't work . It always takes the system time but not the one set in jnlp.

      <j2se version="1.6*&1.6.0_05+"
      java-vm-args="-Xms64m -Xmx512m -Dsun.java2d.noddraw=true"
           <property name="sun.java2d.noddraw" value="true" />
           <property name="user.timezone" value="Canada/Central" />

      Can you please tell me what I am doing wrong? Is there any alternative way to set timezone? Sending it as java args also din't work.

        • 1. Re: user.timezone in jnlp
          Unsigned applets and webstart applications can only set selected "secure" properties.
          or webstart developer guide:
          (look for decryption of property tag)

          To pass insecure property you can sign your application (including JNLP file).
          Please see http://www.oracle.com/technetwork/java/javase/index-142562.html#COMMAND_LINE_ARGS and JNLP spec.

          List of secure properties is being revisited from time to time to include more properties if there are good use cases and security audit considers them secure.
          If you feel user.timezone should be available for unsigned apps (personally i do not see why not) then please file an RFE on Java and explain why you think this property is useful to overwrite in JNLP.