FHIR Chat · Configure date format · IG creation

Stream: IG creation

Topic: Configure date format


view this post on Zulip Gabriel Kleinoscheg (Jan 05 2022 at 07:17):

I wonder if it was possible to configure the date format presented in the summary of CodeSystem or ValueSet resources:

status_date_format.PNG

Interestingly, when creating the IG locally a different date format is being displayed:

status_date_format_local.PNG

view this post on Zulip Grahame Grieve (Jan 06 2022 at 02:23):

the answer is that it's using short date format in the java locale for US. And for reasons best known to Java, that varies between versions - see both https://stackoverflow.com/questions/69300459/different-results-with-same-locale-using-simpledateformat-on-same-machine-with-w and https://stackoverflow.com/questions/70059067/is-datetimeformatter-operating-system-dependent

view this post on Zulip Grahame Grieve (Jan 06 2022 at 02:23):

the next version of the IG publisher will use the locale implied by either ig.language or ig.jurisdiction, or a combination of both.

view this post on Zulip Grahame Grieve (Jan 06 2022 at 02:24):

The default will remain US. See https://github.com/hapifhir/org.hl7.fhir.core/issues/666

view this post on Zulip Brian Postlethwaite (Jan 06 2022 at 02:42):

Gold - issue 666 is a date formatting issue

view this post on Zulip Lloyd McKenzie (Jan 06 2022 at 04:19):

Can we not just make it yyyy-mm-dd across the board? That's recognized and understood independent of locale...

view this post on Zulip John Moehrke (Jan 06 2022 at 13:09):

Being a life-long USA citizen, I don't understand why we would keep this date format as an exception. There are plenty of yyyy-mm-dd uses of date format in the USA.

view this post on Zulip Gabriel Kleinoscheg (Jan 20 2022 at 12:19):

I also prefer yyyy-mm-dd as date format. When would that change be available?

view this post on Zulip Lloyd McKenzie (Jan 20 2022 at 14:28):

Care to submit a Git issue against the publisher?

view this post on Zulip Gabriel Kleinoscheg (Jan 21 2022 at 06:48):

Done: https://github.com/HL7/fhir-ig-publisher/issues/378

view this post on Zulip Grahame Grieve (Jan 28 2022 at 22:39):

Added two new parameters format-date and format-datetime

view this post on Zulip Gabriel Kleinoscheg (Feb 02 2022 at 13:32):

Although I'm using version 1.1.98 my resources are not having the desired date format (at "Status"), not even the default formats.

view this post on Zulip Grahame Grieve (Feb 03 2022 at 00:07):

hmm where?

view this post on Zulip Grahame Grieve (Feb 03 2022 at 00:07):

tells me which part of the code to investigate

view this post on Zulip Gabriel Kleinoscheg (Feb 03 2022 at 11:22):

Take a look at https://termgit.elga.gv.at/ValueSet-appc-anatomie.html

Here in the summary the row with "Status" still has got the old date format.


Last updated: Apr 12 2022 at 19:14 UTC