Skip to content

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

Open
@GitToTheHub

Description

@GitToTheHub

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions