Menu

#71 Standard Calendar localization import problem

closed-fixed
Jon Iles
None
5
2009-03-24
2009-01-27
No

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.

Discussion

  • Thomas CORNET

    Thomas CORNET - 2009-01-27

    Project with 7h per day standard calendar

     
  • Thomas CORNET

    Thomas CORNET - 2009-01-30

    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...

     
  • Jon Iles

    Jon Iles - 2009-03-19
    • assigned_to: nobody --> joniles
     
  • Jon Iles

    Jon Iles - 2009-03-24

    The code in CVS has been updated to fix this issue.

     
  • Jon Iles

    Jon Iles - 2009-03-24
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB