Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

System.formatDate() Year 2016 Bug?

$
0
0

Hello, can anyone confirm this Happy-New-Year-feature (found on a german windows Server 2k12R2, with vCenter Orchestrator 5.5.3): - Create a new Workflow - Add one scriptable Task Use the following content for the scriptable Task: var myTimestamp = System.getCurrentTime(); var myDate = new Date(); myDate.setTime(myTimestamp); System.log("getYear from DateObject: "+(myDate.getYear()+1900)); System.log(System.formatDate(myDate, "YYYY-MM-dd HH:mm:ss")); Run the workflow. I would exspect in the log lines: 2016 2016-01-02 13:00:00 But I get: 2016 2015-01-02 13:00:00 The clock on the server is correct. A SR is already open but I'm interested if its only on "my" server or on other servers, too.


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>