LedgerSMB icon indicating copy to clipboard operation
LedgerSMB copied to clipboard

Date format for new user creation is confusing

Open lifeboy opened this issue 1 year ago • 2 comments

Version

1.11.8

What browsers are you seeing the problem on?

This problem isn't browser related

What happened?

When a new user is created using setup.pl and create new user, the data format in the empty date field shows "dd/mm/yyyy". However, entering a date in that format results in an error.

What should have happened?

The format of that date shown should match the format that the date must be entered in.

When one uses the dropdown date widget and selects a date from there, it adds a date on "yyyy-mm-dd" format, which works (even if one edits the actual date in that format).

Either the form field should display the correct format or the acceptible format should be adjusted.

lifeboy avatar Feb 02 '24 10:02 lifeboy

Thanks for reporting! However, I'm unable to reproduce: my input asks for m/d/yyyy, not dd/mm/yyyy. So that's a major difference, but selecting a date in that format correctly gets me the user I need/want.

Is there anything you're able to share about your environment? What's the default language preference you're using for browsing your web pages? Mine is en_US.

ehuelsmann avatar Feb 12 '24 22:02 ehuelsmann

I have in the meantime decided to do a re-installation. I'll update this ticket if the same problem is still there after that.

On Tue, 13 Feb 2024 at 00:02, Erik Huelsmann @.***> wrote:

Thanks for reporting! However, I'm unable to reproduce: my input asks for m/d/yyyy, not dd/mm/yyyy. So that's a major difference, but selecting a date in that format correctly gets me the user I need/want.

Is there anything you're able to share about your environment? What's the default language preference you're using for browsing your web pages? Mine is en_US.

— Reply to this email directly, view it on GitHub https://github.com/ledgersmb/LedgerSMB/issues/7983#issuecomment-1939667590, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEZPJ3QYYE4IUH6CCQ54ATYTKGPRAVCNFSM6AAAAABCWPKYVSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZZGY3DONJZGA . You are receiving this because you authored the thread.Message ID: @.***>

lifeboy avatar Feb 23 '24 11:02 lifeboy

Thanks for the update. Will work on this further at that time.

ehuelsmann avatar Feb 24 '24 19:02 ehuelsmann

I have installed using docket-compose now and since South Africa is not on the list of countries, I selected EN-GB.

My OS timezone is:

date

Mon Feb 26 06:56:46 PM SAST 2024

that's UTC+2, but I don't think that makes a difference.

Here's what my create user screen looks like.

[image: Capture.PNG]

However, as can be seen by the red exclamation mark, the date format not understood.

regards

Roland

On Sat, 24 Feb 2024 at 21:11, Erik Huelsmann @.***> wrote:

Thanks for the update. Will work on this further at that time.

— Reply to this email directly, view it on GitHub https://github.com/ledgersmb/LedgerSMB/issues/7983#issuecomment-1962574060, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEZPJYTOTFSXE3WR3GWUEDYVI3N5AVCNFSM6AAAAABCWPKYVSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSGU3TIMBWGA . You are receiving this because you authored the thread.Message ID: @.***>

lifeboy avatar Feb 26 '24 16:02 lifeboy

The only format that is accepted is: yyyy-mm-dd

yyyy/mm/dd is not acceptable even though the original suggestion uses / as separator.

On Mon, 26 Feb 2024 at 18:58, Roland Giesler @.***> wrote:

I have installed using docket-compose now and since South Africa is not on the list of countries, I selected EN-GB.

My OS timezone is:

date

Mon Feb 26 06:56:46 PM SAST 2024

that's UTC+2, but I don't think that makes a difference.

Here's what my create user screen looks like.

[image: Capture.PNG]

However, as can be seen by the red exclamation mark, the date format not understood.

regards

Roland

On Sat, 24 Feb 2024 at 21:11, Erik Huelsmann @.***> wrote:

Thanks for the update. Will work on this further at that time.

— Reply to this email directly, view it on GitHub https://github.com/ledgersmb/LedgerSMB/issues/7983#issuecomment-1962574060, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEZPJYTOTFSXE3WR3GWUEDYVI3N5AVCNFSM6AAAAABCWPKYVSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSGU3TIMBWGA . You are receiving this because you authored the thread.Message ID: @.***>

lifeboy avatar Feb 26 '24 18:02 lifeboy

Here's what my create user screen looks like. [image: Capture.PNG]

Unfortunately, your image didn't get copied into the site. Could you try again? Thanks in advance!

ehuelsmann avatar Feb 26 '24 22:02 ehuelsmann

I have installed using docket-compose now and since South Africa is not on the list of countries, I selected EN-GB.

Just to be sure: you selected that in your browser's settings, not in "setup.pl", correct?

ehuelsmann avatar Feb 26 '24 22:02 ehuelsmann

Here's what my create user screen looks like. [image: Capture.PNG]

Unfortunately, your image didn't get copied into the site. Could you try again? Thanks in advance!

Capture

lifeboy avatar Feb 27 '24 09:02 lifeboy

I have installed using docket-compose now and since South Africa is not on the list of countries, I selected EN-GB.

Just to be sure: you selected that in your browser's settings, not in "setup.pl", correct?

I just did it again and it seems I selected UK in setup.pl. (Not EN-GB, apologies for that) image

lifeboy avatar Feb 27 '24 09:02 lifeboy

Thank you for getting back with the screenshots and steps to create the problem.

The step where you select en_GB is about selecting a chat of Accounts (the set of general ledger accounts and their settings), not a language selection.

The language selection I was referring to, is the setting you have in your browser. https://www.pcmag.com/how-to/how-to-change-your-default-language-in-google-chrome describes how to select it change language settings in chrome. Other broeders have similar ways to change preferences.

What I meant to ask is: what is the preferences confused in your browser? With that I can hopefully reproduce your report.

ehuelsmann avatar Mar 04 '24 04:03 ehuelsmann

Hi Erik, I use Brave and Firefox in general. The screenshots were taken from Brave. There my language settings are:

  1. English (United Kingdom) This language is used when translating pages
  2. English (United States)
  3. English I tested this in Firefox with English (GB) as language selection and it works fine. I don't have Chrome installed on my machine.

Also, selecting a date with the date-dialogue popup actually fills in a yyyy-mm-dd formatted date, so it's literally only the template format that's displayed by default in the add user form that doesn't match the required format.

On Mon, 4 Mar 2024 at 06:31, Erik Huelsmann @.***> wrote:

Thank you for getting back with the screenshots and steps to create the problem.

The step where you select en_GB is about selecting a chat of Accounts (the set of general ledger accounts and their settings), not a language selection.

The language selection I was referring to, is the setting you have in your browser. https://www.pcmag.com/how-to/how-to-change-your-default-language-in-google-chrome describes how to select it change language settings in chrome. Other broeders have similar ways to change preferences.

What I meant to ask is: what is the preferences confused in your browser? With that I can hopefully reproduce your report.

— Reply to this email directly, view it on GitHub https://github.com/ledgersmb/LedgerSMB/issues/7983#issuecomment-1975680381, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABEZPJ4E75M5XZIAQXUOUQ3YWP2LPAVCNFSM6AAAAABCWPKYVSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZVGY4DAMZYGE . You are receiving this because you authored the thread.Message ID: @.***>

lifeboy avatar Mar 04 '24 09:03 lifeboy

Thanks! That helped me find (and fix) the issue!

ehuelsmann avatar Mar 06 '24 20:03 ehuelsmann