Menu

How can change default working start and end time in code?

hong
2021-10-14
2021-10-14
  • hong

    hong - 2021-10-14

    Hello.

    I want change default working start and end time.
    ProjectLibre default working time is from 08:00 am, to 17:00 pm.
    But, My working time is 09:00 am, 18:00 pm.
    How can I change working time in source code??
    I download ProjectLibre source code and change 8, 17 to 9, 18 in source codes...
    And run source code use eclipse. but, working start and end time is still 08:00 am to 17:00 pm.
    Please help me...

    CalendarOption.java
    int defaultStartHour = 8;
    int defaultEndHour = 17;

    WorkingHours.java
    cal.set(Calendar.HOUR_OF_DAY,8);
    cal.set(Calendar.HOUR_OF_DAY,17);

    ProjectCalendarWeek.java
    public static final DateRange DEFAULT_WORKING_MORNING = new DateRange(DateHelper.getTime(8, 0), DateHelper.getTime(12, 0));
    public static final DateRange DEFAULT_WORKING_AFTERNOON = new DateRange(DateHelper.getTime(13, 0), DateHelper.getTime(17, 0));

     
    • Tahoeob

      Tahoeob - 2021-10-14

      Thanks for your message. You don't need to alter the code.... there is a video on our YouTube Channel that explains changing calendar dates. You can alter the default times in the Calendar dialog box.

       
      • hong

        hong - 2021-10-15
        Post awaiting moderation.

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.