Offset dates when reading MPP.
Multi platform library to read and write schedule data
Brought to you by:
joniles
I have a problem reading the MPP. I am getting offset dates when getting, for example, the START field.
@Test
public void testBug() throws MPXJException {
MPPReader reader = new MPPReader();
ProjectFile project = reader.read("C:\3.mpp");
listHierarchy(project);
}
public void listHierarchy(ProjectFile file)
{
for (Task task : file.getChildTasks())
{
System.out.println("Task: " + task.getStart());
listHierarchy(task, " ");
}
System.out.println();
}
private void listHierarchy(Task task, String indent)
{
for (Task child : task.getChildTasks())
{
System.out.println(indent + "Task: " + child.getStart());
listHierarchy(child, indent + " ");
}
}
Detail screen
Hi! Apologies for the delay in replying. I think this may be the issue: https://stackoverflow.com/questions/26908043/getting-incorrect-time-leading-by-1-hour-with-europe-moscow-timezone ig you've updated your JDK/JRE and you still have the same problem let me know.