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

Employee Edit view cannot show currently stored dates #474

Open
federoitman opened this issue Jan 24, 2025 · 2 comments
Open

Employee Edit view cannot show currently stored dates #474

federoitman opened this issue Jan 24, 2025 · 2 comments

Comments

@federoitman
Copy link

Bug Report

Description

When I add ingress date to an employee, after successful save, the form shows the data as empty. If I go to the employee profile the date has been correctly set.

Steps to Reproduce

  1. Edit an employee
    2.a. If the employee has already an ingress date, go to 3
    2.b. If the employee has no ingress date, choose one and save
  2. The edit form has no ingress date set.

Expected Behavior

I should be able to see the set date in the edit form

Actual Behavior

The date is show as not set "dd/mm/yyyy"
In the browser console I see: "The specified value "01/01/2025" does not conform to the required format, "yyyy-MM-dd"."

Environment

Latest dev branch running in docker-compose.

@horilla-opensource
Copy link
Owner

Hi @federoitman ,

We appreciate the detailed description and steps to reproduce the problem. The issue occurs because the date format currently supports only displaying values, but not for input fields. Specifically, the input fields expect the yyyy-MM-dd format, which is causing the mismatch with the displayed format dd/mm/yyyy.

We will work on updating the system to ensure the selected date format is consistently applied in the input field as well. This will prevent the error:

This enhancement will align the displayed date format with the input field's requirements, providing a seamless experience when editing employee details.

We’ll keep you updated as this fix progresses. In the meantime, if you have any additional feedback or suggestions, feel free to let us know!

Best Regards,
Team Horilla

@federoitman
Copy link
Author

Thanks for your response. I'm trying to update the date-time format to "yyyy-mm-dd" in the meantime.

But if I go to /settings/date-settings/ date appears ad yyyy-mm-dd

Image

If I try to update the format for All company I receive the error: "Please update the company field for the user."

If I try to do it for a single company I recieve the error: "Date format cannot saved. You are not in the company."

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

No branches or pull requests

2 participants