Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356971 - JS strLib.formatTimestamp generates without comma separating parameters
Summary: JS strLib.formatTimestamp generates without comma separating parameters
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-07 12:47 EDT by Kathy Carroll CLA
Modified: 2017-02-23 14:20 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.