Find the answer to your Linux question:
Results 1 to 3 of 3
Good day! I have installed a virtual system based ProxMox. On one of the virtual machines installed CentOS 6.3 64x. I need to Java (1.7.0_09) installed on centos, shows the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jul 2013
    Posts
    2

    Java time in GMT, but i need in MSD


    Good day!
    I have installed a virtual system based ProxMox. On one of the virtual machines installed CentOS 6.3 64x.
    I need to Java (1.7.0_09) installed on centos, shows the time in MSD.

    What I have done for this:

    1.) download the rpm-packages tzdata-2013c-2.el6 and tzdata-java-2013c-2.el6 for Centos 6.3 and updated it.

    2.) Download tzupdater.jar oracle.com (java -jar tzupdater.jar-u)

    after which time a CentOS 6.3:
    date Mon Jul 22 15:24:23 MSD 2013

    and java is still in GMT: Mon Jul 22 11:25:07 GMT 2013

    How is it possible to win, tell me please?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,556
    Have you used the tzset command in the VM? The problem is that the VM is likely getting the raw system clock (in GMT/UTC), so you need to tell it what time zone you are in.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Jul 2013
    Posts
    2
    Thank you Rubberman!!! export TZ='Europe\Moscow' solved problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •