Problem/Motivation

Date-only fields get indexed at midnight UTC. Core works around this issue by setting a 'default time' for date-only fields.

Proposed resolution

Add the default time before returning the timestamp in the DateDataType::getValue() method.

Remaining tasks

User interface changes

API changes

Data model changes

Comments

jhedstrom created an issue. See original summary.

jhedstrom’s picture

Status: Active » Needs review
StatusFileSize
new5.3 KB
new2.18 KB
jhedstrom’s picture

The last submitted patch, 2: 2982187-03-TEST-ONLY.patch, failed testing. View results

Status: Needs review » Needs work

The last submitted patch, 2: 2982660-02.patch, failed testing. View results

jhedstrom’s picture

Status: Needs work » Needs review
StatusFileSize
new1.16 KB

Not sure what that fail is about. However, this was the entirely wrong test-only patch. Here's the correct one.

The last submitted patch, 2: 2982660-02.patch, failed testing. View results

Status: Needs review » Needs work

The last submitted patch, 6: 2982660-02-TEST-ONLY.patch, failed testing. View results

jhedstrom’s picture

Status: Needs work » Needs review

That kernel test is failing on the main branch too (#2982693: Test failing on main branch).

In the meantime, this is back to NR.

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for bringing this up. This is a really small bugfix and has test-coverage. Great work @jhedstrom!

drunken monkey’s picture

Status: Reviewed & tested by the community » Needs review

Seconded, awesome job, thanks! That you even provided tests without anyone nagging about it is just exemplary! ;)
Committed with a tiny bit of code clean-up.
Thanks again! (Also to Joris for reviewing!)

drunken monkey’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.