| Summary: | date 'extends' function does not return correct timestamp format | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Tom B <tmbarans> |
| Component: | EDT | Assignee: | Project Inbox <edt.javagen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | jeffdouglas, tmbarans |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
fixed verified for EGL Development Tools (EDT) 0.7.0.v201110232102 Closing this work item |
Build Identifier: 20110218-0911 the function myDate.extend(format) ignores the input format string and always returns timestamps in the form yyyyMMdd Reproducible: Always Steps to Reproduce: 1. Generate EDate008.egl for Java testing. The file can be found in org.eclipse.edt.eunit.test/api.eglx_lang 2. Run the generated java program. The output shows that the specified formats are ignored and the format of the returned timestamp is always yyyyMMdd\\ e.g. const febLeap date = "02-29-2000"; const febLeapTimeStampYDate timeStamp("yyyy") = "2000"; function runAssignmentFunction02(){@Test} actual=febLeap.extend("yyyy"); LogResult.assertTimestampEqual("date to timestamp yyyy",febLeapTimeStampYDate,actual); end EDate008::runAssignmentFunction02: FAILED - date to timestamp yyyy - Failed: Expected value = '2000' Actual value = '2000-02-29'