| Summary: | Java and javascript implementation of the default format for timestamp is different | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Huo Zhen Zhong <huozz> |
| Component: | EDT | Assignee: | Project Inbox <edt.javascriptgen-inbox> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | greer, hjiyong, jeffdouglas, jqian, svihovec |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
In javagen, the fractional part is also printed. I think you are using an older version of EDT. This as fixed and committed yesterday. The only difference now, is what the separator is between the date and the time part. In javagen, it is a space currently. In JS it is a period. We will check into this difference. Hi, Jeff Yes, the format is OK now, but I think it has a little problem, you can see there is a line between date and time in JS: JS: 2011-10-31-01:33:39.639000 Java: 2011-10-31 01:33:39.639000 Yes, I talked it over with Scott Greer and he was supposed to fix JSGen. That's why I sent this defect over to that component. Javagen is fine. Fixed JS gen. verified on 0.7.0.v201111030901 |
Build Identifier: i.e. if I have t timestamp("yyyyMMddHHmmssffffff"); syslib.writeStdOut("current time is: " + t); in java it prints: 2011-10-26 16:05:15 in javascript it prints: 2011-10-26-16.05.15.000000 I think they both have issues, at the minimal, it should use the same type separator, as far as mili and micro second, I would like to know what should be the expected value for the specific implementation. Reproducible: Always