Menu

Date format beside milestone

Bug List
Anonymous
2021-04-12
2023-07-10
  • Anonymous

    Anonymous - 2021-04-12

    Hello,

    I use ProjectLibre 1.9.3 on Japanese Windows 10. Therefore, language setting of the OS is Japanese.
    When I create a milestone, date is shown next to a diamond symbol. But the date shows year and month with YY/MM format. I believe that this behaviour is not appropriate. For your information, Language setting of ProjectLibre is Japanese (ja).

    When I change Language setting of ProjectLibre to English (en), the date shows month and day with MM/DD format.
    I guess that locale seems not to be referred properly.

    I hope that it would be corrected in future release.
    Best regards.

     
  • Tahoeob

    Tahoeob - 2021-04-15

    Thank you, that is odd.... do you change the language and also the country? It still seems odd. We link to an open source database on that so it may be incorrect in the db. We don't actually set it in ProjectLibre

     
    • Anonymous

      Anonymous - 2021-04-19

      Hello. I am sorry for my bad explanation.
      I only changed "Language" setting. Please see the two attached files.
      I have tried to understand the source code, unfortunately, I cannot find exact code and a module that draw the milestone date.
      Therefore, at this moment, I only can report what happens if something is changed in my environment.

       
  • Tahoeob

    Tahoeob - 2021-04-19

    I tested and it displays correctly in English and Spanish but did see the issue with Japanese annotation. There must be something in the 3rd party library and Java. This is not something ProjectLibre controls but agree it is strange in Japanese

     
  • Anonymous

    Anonymous - 2023-06-07
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2023-06-07
    Post awaiting moderation.
  • zephyrus

    zephyrus - 2023-06-07

    Hi, I am sorry that I tried to post a couple of messages to this bug report anonymously 5 hours ago.
    I didi not realize I was not logged into sourceforge.

    Well, after posting the inquiries, I tried to check usage of some libraries, and such or defining -Duser.variant=, -Duser.lang=, -Duser.country=, etc. in the ".cfg" file, to no avail.
    (I had to set the lang as "default" and country field as empty, which can be changed from the round globe menu in the upper-right corner of the program window pane to make the command line -Duser.* setting to be effective. )

    Well, there was no solution in sight then, but this is such a crucial user-experioence problem when I want to present the Gantt chart to non-techie types in Japan, who are not accustomed to date format (d M yyyy), I kept on checking on the subtle interaction of JAVA date string and other user locales, etc.

    Then I hit upon the following URL. which basically solved my issue.
    https://qiita.com/bunaImage/items/bac70618c5a27196c517

    I am creating my own explanation of what to do here since I experienced an issue of modifying the .jar file incorrectly under Windows and the original URL was not quite clear on this.

    Here is my fix.
    I wanted to change the date format that is shown in the top of Gatt Chart from
    21 6 2023 to 23 6 21 (Or 23年6月21, but that can wait.)

    I am using Windows 10 Pro 64-bit.
    YMMV.

    Steps

    1. Open the installation destination folder (e.g. C:\Program Files\ProjectLibre\app)

    2. Copy and paste projectlibre.jar to the desktop, etc., and rename it
      to projectlibre.zip (that is, ".jar" -> ".zip")

    3. Rename the original projectlibre.jar in the installation directory for
      saving purposes. (e.g. rename it to projectlibre.jar.original)
      We need to have the original just in case we screw up, and I did once.

    4 Obtain the full listing of files in the copied projectlibre.zip by double clicking it.

    1. Copy the following file in the archive listing to somewhere else and edit
      it as explained below.

    com\projectlibre1\configuration\configuration.xml

    Note: I have to copy the file to outside the archive.
    Unless the file is copied outside the zip archive, I could not edit it on my windows installation .
    If I right-click on the "configuration.xml" file in the archive listing, there is no "Edit" menu item.
    That is why I needed to copy it.

    1. Open the file with a text editor and rewrite it as follows. (Change pattern2="d MMM yy" -> pattern2="yy M d")

    The original suggested changing it to "yyyy M d", but I only needed the last two digits of the year for now. You can modify the string to suit your needs.
    From the look of the XML node, I think the culprit here is the calendar-related code, but I digress.

    Before: timescales in configuration.xml

        <timescale calendarField1="7" number1="1" pattern1="E"
            trunc1="1" upperCase1="true" normalMinWidth="15" tableMinWidth="51"
            calendarField2="3" number2="1" pattern2="d MMM yy" />
    

    After: timescales in configuration.xml

        <timescale calendarField1="7" number1="1" pattern1="E"
            trunc1="1" upperCase1="true" normalMinWidth="15" tableMinWidth="51"
            calendarField2="3" number2="1" pattern2="yy M d" />
    

    cf. Note that there are several <timescale ...=""> entries in configuration.xml
    I only changed one of them.
    It would be cool if we can modify it from within projectlibre program itself.</timescale>

    1. Open projectlibre.zip in Explorer and overwrite the said file inside the archive by drag & drop

    That is, first you have to show the file listing of projectlibre.zip by
    double clicking on it WITHOUT expanding it completely as full set of subdirectories and files under them.

    Drag and drop the modifiedconfiguration.xml into the file listing of projectlibre.zip to replace it.
    You will be asked "There is already a file with the same name in this location.
    Select "Copy and Replace" when asked to do so.
    Rename projectlibre.zip to projectlibre.jar and place it in the original location.

    In the above steps, you are warned that you need to have proper priviledge as administrator, but I omit them. Most of you know how to handle it.

    Note: I have to follow this "in-place archive file replacement".
    Somehow, if I expand the full subdirectory structure, and edit the
    file there, and re-create zip archive and rename it to ".jar". And then replace it with the original, projectlibre won't start. This won't work. The JVM can't find the symbols such as main and
    projectlibre won't start.

    1. Try to run ProjectLibre.

    Now I get the date as shown in the attachment.

    As I mention above, if we can configure this from within the
    projectlibre program itself, that will be super.

     
  • Anonymous

    Anonymous - 2023-06-21

    Sorry, off topic question, could you tell me what is the current version of projectlibre cloud and the current version of projectlibre community?

     

Anonymous
Anonymous

Add attachments
Cancel