Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mhonarc-ressources.tt2 uses inconsistent date formats #689

Closed
dpc22 opened this issue Jul 12, 2019 · 4 comments
Closed

mhonarc-ressources.tt2 uses inconsistent date formats #689

dpc22 opened this issue Jul 12, 2019 · 4 comments

Comments

@dpc22
Copy link
Contributor

dpc22 commented Jul 12, 2019

Expected Behavior

I would like archived.pl / mhoarc to use European date formats (%d/%m/%Y).

Alternatively ISO 8601 date formats (%Y-%m-%d) which have the advantage of being unambiguous.

Current Behavior

Sympa mostly uses American middle endian date formats (%m/%d/%Y).

However the "Chronological" tab uses %y/%m/%d to start each new day.

Possible Solution

My existing workaround is a custom mhonarc-ressources.tt2 file.

Would it be possible to add a configuration option which is referenced in the default file instead?

Context

My users do not normally use American middle endian date formats.

07/01/2019 would normally be read as 7th January 2019 rather than 1st July 2019.

@ikedas
Copy link
Member

ikedas commented Jul 12, 2019

Hi @dpc22,

Sympa mostly uses American middle endian date formats (%m/%d/%Y).

Where is it used? Could you show screen shot?

@dpc22
Copy link
Contributor Author

dpc22 commented Jul 12, 2019

https://listes.renater.fr/sympa/arc/sympa-developpers/2019-07/ includes:

Re: [sympa-developpers] Sympa web site updated IKEDA Soji, 07/05/2019

That message was sent on 5th July 2019. In addition:

https://listes.renater.fr/sympa/arc/sympa-developpers/2019-07/mail1.html contains:

19/07/05
...
19/07/06
...
19/07/07

which are year/month/day

@ikedas
Copy link
Member

ikedas commented Jul 16, 2019

Duplicate of #115.

You may correct English translation here (sign-in is needed to correct it).

@dpc22
Copy link
Contributor Author

dpc22 commented Jul 17, 2019

(Sorry if this reopens the ticket: it seemed sensible to attach the following text to the original ticket),

The existing translation is fine for en_US.

It looks like I would need a dedicated en_GB locale for the differences between American and British English. Maintaining my own mhonarc-ressources.tt2 might be the fastest/simplest workaround given that this is the only issue that I have run into to date.

However thanks for pointing out that the localisation stuff can also transform date strings. That hadn't occurred to me.

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

No branches or pull requests

2 participants