Hi all,
I am configuring the Check Price and Availability application in Fiori. When I do an availability check with the current date, the application will return yesterday's date as the 'Estimated Delivery Date'. I have checked the OData service and found no issue with the dates. But I found some date calculations happening in the front end inside two Javascript files. Please find the details of the issue below.
- Material availability check is performed with today's date (June 4 2014).
2. The month will get decreased inside the Product.controller.js file,.
Before executing line no: 224.
After executing line no: 224.
3. After executing line no: 226, the date is decreased and the month is increased from the method FormatMediumDate defined inside the Javascript file 'DateTimeFormatter.js'.
4. The decreased date will be shown in the final output.
Please advice whether this is an expected behavior or a logical error.