VMware Aria Automation Orchestrator

 View Only
  • 1.  vRO 8.0.1 - Type "Date" in GMT instead of CET (as configured)

    Posted Mar 10, 2020 01:41 PM

    Hello Community,

    I have a "little problem" with time configuration in vRO 8.0.1.

    I configured the Appliance as follows:

    root@vrotest [ / ]# vracli ntp status

    vrotest.test.dom:

    ----------------------------------

    systemd configuration:

          Local time: Tue 2020-03-10 13:59:59 CET

      Universal time: Tue 2020-03-10 12:59:59 UTC

            RTC time: Tue 2020-03-10 12:59:59

           Time zone: Europe/Berlin (CET, +0100)

    Network time on: yes

    NTP synchronized: yes

    RTC in local TZ: no

    ----------------------------------

    eSXi NTP configuration: disabled

    ----------------------------------

    I test with a tiny workflow to check the date/time:

    Input:

    so far so good. 03/10/2020 2:07 PM

    Variables in the workflow run:

    still okay, seems to be CET ;D

    Logs:

    System.log("Input Time: " + time);

    Time is now in GMT?!

    Do you have any idea whats going wrong here?

    many thanks in advance!



  • 2.  RE: vRO 8.0.1 - Type "Date" in GMT instead of CET (as configured)

    Broadcom Employee
    Posted Mar 10, 2020 02:59 PM

    Could you check what is the log output from the following snippet?

    var d = new Date();

    System.log("Current date is: " + d);

    System.log("Timezone offset is: " + d.getTimezoneOffset());

    The last line should print the number of minutes representing what the vRO server is seeing as current timezone offset. For CET, I think it should be -60



  • 3.  RE: vRO 8.0.1 - Type "Date" in GMT instead of CET (as configured)

    Posted Mar 11, 2020 10:06 AM

    Hi,

    output looks that way....

    no offset at all. :smileysad:       



  • 4.  RE: vRO 8.0.1 - Type "Date" in GMT instead of CET (as configured)

    Posted Mar 12, 2020 08:48 AM

    Just added a dirty workaround ;D

    System.log("Input Time: " + time);

    var d = new Date(); 

    System.log("Current date is: " + d); 

    System.log("Timezone offset is: " + d.getTimezoneOffset());

    d.setHours(d.getHours() + 1)

    System.log("Workaround +1h to meet CET TZ: " + System.formatDate(d,"dd.MM.yyyy HH:mm"))

    Works until the daylight saving time change....

    here the output:

    iiliev​ Do you think that this is a misconfiguration that I can fix in any way, or may it be a bug?

    kind regards ^.^



  • 5.  RE: vRO 8.0.1 - Type "Date" in GMT instead of CET (as configured)

    Posted Dec 15, 2020 10:31 PM

    I am seeing similar behavior. Have you been able to figure this out?



  • 6.  RE: vRO 8.0.1 - Type "Date" in GMT instead of CET (as configured)

    Posted Jan 12, 2021 12:47 PM

    You can add -Duser.timezone=GMT-1 for example at JVM_OPTS. There is a deployment.yaml file at /opt/charts/vco/templates/ where you can do this. After you change the file you need to run deploy.sh script located at /opt/scripts/. Every time you upgrade the appliance you will need to do this again.