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

DE date not localized in errors.messages.greater_than_or_equal_to #1117

Open
GitToTheHub opened this issue Jan 8, 2024 · 0 comments
Open

Comments

@GitToTheHub
Copy link

Hi,

the date in the error message of greater_than_or_equal_to is not localized. The output is something like 2024-01-08 07:18:00 UTC but I want it more human readable like: Montag, 08. Januar 2024, 07:18 Uhr

Example:
I have the following validation in my model:

validates :start_datetime, presence: true
validates :end_datetime, comparison: {if: :start_datetime?, greater_than_or_equal_to: :start_datetime }

When I'm settting the end_datetime before the start_datetime i get the following error message:

Enddatum mit Uhrzeit muss größer oder gleich 2024-01-08 07:18:00 UTC sein

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

1 participant