I have a problem when importing the standard calendar from a french version of MS-Project 2007. In french version, the standard calendar hours are 9AM to 12AM and 1PM to 7PM (7 hours per day). When importing this calendar, default hours are set using this constant :
net.sf.mpxj.ProjectCalendar.DEFAULT_START1
The problem is that is constant is initialized this way
DEFAULT_START1 = DateUtility.getTime(8, 0)
When import if done, the standard calendar is 8 hours per day, which is different from the one in the file. As some computations relie on calendars, some other data like TimephasedResourceAssignments are wrong.
Changing the way the constant is initialized works well, but if I try to import an english project file, the problem is remaining.
Unfortunately, I've not found any dara related to locale in the ProjectFile class; butthis data seems to be stored in the file because if I open a english project with my franch MSProject, the default hours are good in the standard calendar.
Project with 7h per day standard calendar
Project's headers contains conversion data, such as the number of minutes in a work day. I did not check it yet but it might be possible to determine the description of the standard calendar from those fields...
The code in CVS has been updated to fix this issue.