Date formatting in PDSOE templates (macros)

Posted by danielb on 08-Mar-2017 16:45

We are currently moving from 11.3 to 11.6, and have noticed a behaviour change in the formatting of ${date} variables in PDSOE templates.

We have the following macro:

@upgrade.modified (procedurename="${word_selection}", date="${date}", time="${time}").

Under 11.3, the "${date}" variable gets resolved as "Mar 09, 2017". 

Under 11.6, the same macro and variable gets resolved to "09/03/2017" (dd/mm/yyyy). 

We are running these on separate machines as well, not the same machine. 

Is this something that is impacted by the underlying environment and date/time settings, or is it a change to the formatting in PDSOE after 11.3?

Cheers,

Daniel B.

Posted by Matt Baker on 08-Mar-2017 19:41

You can control the format in newer versions of Eclipse. 

bugs.eclipse.org/.../show_bug.cgi

You may be running into this which blames a change in the JVM.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=459969

All Replies

Posted by Matt Baker on 08-Mar-2017 19:41

You can control the format in newer versions of Eclipse. 

bugs.eclipse.org/.../show_bug.cgi

You may be running into this which blames a change in the JVM.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=459969

Posted by danielb on 14-Mar-2017 02:31

Ah, thanks, Matt. We've looked at most of the regional settings and command line options that we can pass to Eclipse, but to no avail. The formatting option you pointed to is available in Eclipse 4.6, and it's looking like 11.7 will ship with 4.5. Doh! So close!

We've changed our internal processes to be able to interpret both formats of dates.

Thanks again.

This thread is closed