There is a problem with date setting in Project class as well as in Task. A year of the date seems to bee constant. No matter what date I set, there is always year 2000.
The test I did:
-------------------------
public static void main(String[] args) {
Project project = new Project();
project.set(Prj.NAME, “Name”);
project.set(Prj.START_DATE, LocalDate.now().toDate());
project.set(Prj.CURRENT_DATE, LocalDate.now().toDate());
project.set(Prj.TITLE, “Title”);
project.set(Prj.SCHEDULE_FROM_START, NullableBool.to_NullableBool(true));
project.save("~/Desktop/ms-project-" + System.currentTimeMillis() + “.xml”, SaveFileFormat.XML);
}
Result of the test you can find in attachment.