Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 361524

Summary: date 'extends' function does not return correct timestamp format
Product: z_Archived Reporter: Tom B <tmbarans>
Component: EDTAssignee: 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:

Description Tom B CLA 2011-10-20 07:41:40 EDT
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'
Comment 1 Jeff Douglas CLA 2011-10-21 14:43:57 EDT
fixed
Comment 2 Tom B CLA 2011-10-23 22:14:28 EDT
verified for  EGL Development Tools (EDT) 0.7.0.v201110232102
Comment 3 Lisa Lasher CLA 2011-11-09 14:06:52 EST
Closing this work item