Skip to content

Using Date prevents current day records from being included unless exactly at midnight #7

@polomasta

Description

@polomasta

If you want to narrow the results you can pass from: or/and to: options. You can pass any valid value of type String, Date, DateTime or Time - it will be transformed to the date format

So this seems to be causing an issue where if a record was created after midnight then a query including today does not contain this record, since created_at is a DateTime.

Is there a particular reason to do the transformation to Date and not allow DateTime?

Or perhaps I missed something and there is some other way to include records created today?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions