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

Invoice date problem in creating sales invoice #1979

Closed
sevket-yilmaz opened this issue Apr 9, 2021 · 4 comments
Closed

Invoice date problem in creating sales invoice #1979

sevket-yilmaz opened this issue Apr 9, 2021 · 4 comments
Labels
Milestone

Comments

@sevket-yilmaz
Copy link

Hi, I am a new user in Akaunting. I created a new account and tried to create a new sales invoice. When I trying to select 12.02.2021 (or another day in February) for the invoice date, I see the date 12.12.2018 in input (when I clicked some empty area).

image

image

System information (Akaunting, PHP versions)

Akaunting cloud..

@sevket-yilmaz
Copy link
Author

Also I see the same problem in this modal.

image

@MathieuIci
Copy link

Same problem here on Akaunting 2.1.9.

Selecting a date in March or April 2021 works ok, but when selecting a date in February or before, the date gets converted to a date in 2018 when clicking outside the date box.

After selecting a date (date is ok):

image

After clicking outside the date box (date gets changed to something in 2018):

image

@milou12345
Copy link

Had the same problem. Resolved it by changing language under settings > standard values to my language from the drop-down menu. I had set the language in the setup manually to de_De expecting standard localization terminology. You should also check the date settings under localization. Let me know if this helps

@MathieuIci
Copy link

Aha, thanks @milou12345!

This helped narrow down what triggers the issue: when selecting a date format that includes the name of the month in settings/localisation AND using a language other than English.

This should help find the root cause, perhaps there is a "DateTime::createFromFormat()" somewhere that is not configured to convert from a localized version of the month names?

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

No branches or pull requests

4 participants