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

Bug 356971

Summary: JS strLib.formatTimestamp generates without comma separating parameters
Product: z_Archived Reporter: Kathy Carroll <carrollk>
Component: EDTAssignee: Project Inbox <edt.javascriptgen-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: greer
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kathy Carroll CLA 2011-09-07 12:47:45 EDT
Create a library with this function

library WriteResultLib
private currentTime String = null;

function getTimeStamp() returns (String)
    format String = "yyyyMMdd_HHmmss";
    myTime TimeStamp;
    currentTime = strLib.formatTimestamp(myTime, format);
    return (currentTime);
end
end

Generate and deploy

WebContent >client>WriteResultLib.js has this invalid line of code
eze$Temp2 = egl.egl.lang.ETimestamp.fromETimestamp(myTime"yyyyMMddHHmmssffffff");

If I insert a comma, the file will be valid
eze$Temp2 = egl.egl.lang.ETimestamp.fromETimestamp(myTime,"yyyyMMddHHmmssffffff");
Comment 1 Scott Greer CLA 2011-09-16 14:30:33 EDT
The attached code is part of the EUnit test framework.

Fixes included:
* fix the reported problem generating timestamp options
* wired up timestamp, formatting support in the JS RT
* renamed eglx.lang.StrLib to eglx.lang.StringLib
Comment 2 Kathy Carroll CLA 2011-09-19 15:54:31 EDT
verfied with 201109191052
Comment 3 Lisa Lasher CLA 2011-10-11 16:27:41 EDT
Closing this defect.