Skip to content

Fix: Convert date string to english locale in java setViewDate method#3072

Open
merlea wants to merge 1 commit into
MDSplus:alphafrom
merlea:convert-english-setViewDate-java
Open

Fix: Convert date string to english locale in java setViewDate method#3072
merlea wants to merge 1 commit into
MDSplus:alphafrom
merlea:convert-english-setViewDate-java

Conversation

@merlea

@merlea merlea commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

The java/mdsobjects/tests/MDSplus.MdsTreeTest test would fail on my system due to the locale settings. Converting the locale to en_US allowed the test to pass. This PR allows the test to pass with any locale.

  • Convert date string to english locale first in java setViewDate method since LibConvertDateString expects this
  • Use java.time package tools in place of deprecated java.util.Date,... as recommended by JDK.

@mwinkel-dev

Copy link
Copy Markdown
Contributor

The next post is for the Jenkins build system

@mwinkel-dev

Copy link
Copy Markdown
Contributor

Retest this please

1 similar comment
@mwinkel-dev

Copy link
Copy Markdown
Contributor

Retest this please

@mwinkel-dev

Copy link
Copy Markdown
Contributor

Weird that Jenkins won't rebuild this PR. Will try again later today.

@mwinkel-dev

Copy link
Copy Markdown
Contributor

Retest this please

1 similar comment
@mwinkel-dev

Copy link
Copy Markdown
Contributor

Retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants